### Question:
PlayerAuthBuilderHelper { static PlayerAuth createPlayerAuth(Player player, HashedPassword hashedPassword, String email) { return PlayerAuth.builder() .name(player.getName().toLowerCase()) .realName(player.getName()) .password(hashedPassword) .email(email) .registrationIp(PlayerUtils.getPlayerIp(player)) .registrationDate(System.currentTimeMillis()) .build(); } private  PlayerAuthBuilderHelper();   }### Answer:
@Test public void shouldConstructPlayerAuth() { Player player = mock(Player.class); given(player.getName()).willReturn("Noah"); String ip = "192.168.34.47"; TestHelper.mockPlayerIp(player, ip); HashedPassword hashedPassword = new HashedPassword("myHash0001"); String email = "test@example.org"; PlayerAuth auth = PlayerAuthBuilderHelper.createPlayerAuth(player, hashedPassword, email); assertThat(auth, hasAuthBasicData("noah", "Noah", email, null)); assertThat(auth.getRegistrationIp(), equalTo("192.168.34.47")); assertThat(Math.abs(auth.getRegistrationDate() - System.currentTimeMillis()), lessThan(1000L)); assertThat(auth.getPassword(), equalToHash("myHash0001")); }