### Question:
User extends BaseEntity<Long> { public static Builder getBuilder() { return new Builder(); } User(); static Builder getBuilder(); @Override Long getId(); String getEmail(); String getFirstName(); String getLastName(); String getPassword(); Role getRole(); SocialMediaService getSignInProvider(); @Override String toString();  }### Answer:
@Test public void build_SignedInByUsingSocialMediaService_ShouldCreateUser() { User user = User.getBuilder() .email(EMAIL) .firstName(FIRST_NAME) .lastName(LAST_NAME) .signInProvider(SIGN_IN_PROVIDER) .build(); assertThat(user) .hasNoId() .hasEmail(EMAIL) .hasFirstName(FIRST_NAME) .hasLastName(LAST_NAME) .isRegisteredUser() .isRegisteredByUsingSignInProvider(SIGN_IN_PROVIDER); }
@Test public void build_RegisteredViaNormalRegistration_ShouldCreateUser() { User user = User.getBuilder() .email(EMAIL) .firstName(FIRST_NAME) .lastName(LAST_NAME) .password(PASSWORD) .build(); assertThat(user) .hasNoId() .hasEmail(EMAIL) .hasFirstName(FIRST_NAME) .hasLastName(LAST_NAME) .hasPassword(PASSWORD) .isRegisteredUser() .isRegisteredByUsingNormalRegistration(); }