content: package com.aidanwhiteley.books.domain;
  
  import com.aidanwhiteley.books.domain.User.AuthenticationProvider;
  import org.junit.jupiter.api.Test;
  
  import java.time.LocalDateTime;
  
  import static org.junit.jupiter.api.Assertions.assertEquals;
  
  class UserTest {
  
      @Test
      void testBoilerPlateGeneratedMethodsJustForCodeCoverage() {
          LocalDateTime now = LocalDateTime.now();
          User user1 = buildUser(now);
          User user2 = buildUser(now);
  
          assertEquals(user1.toString(), user2.toString());
          assertEquals(user1.hashCode(), user2.hashCode());
          assertEquals(user1, user2);
      }
  
      private User buildUser(LocalDateTime now) {
          return User.builder().
                  authenticationServiceId("Google").
                  authProvider(AuthenticationProvider.GOOGLE).
                  email("example@example.com").
                  firstLogon(now).
                  firstName("First").
                  fullName("First Last").
                  lastLogon(now).
                  lastName("Last").
                  link("A link").
                  picture("A picture").
                  build();
      }
  
  }
  