### Question:
PlayerAuth { public static Builder builder() { return new Builder(); } private  PlayerAuth(); void setNickname(String nickname); String getNickname(); String getRealName(); void setRealName(String realName); int getGroupId(); void setQuitLocation(Location location); double getQuitLocX(); void setQuitLocX(double d); double getQuitLocY(); void setQuitLocY(double d); double getQuitLocZ(); void setQuitLocZ(double d); String getWorld(); void setWorld(String world); float getYaw(); float getPitch(); String getLastIp(); void setLastIp(String lastIp); Long getLastLogin(); void setLastLogin(long lastLogin); String getEmail(); void setEmail(String email); HashedPassword getPassword(); void setPassword(HashedPassword password); String getRegistrationIp(); long getRegistrationDate(); void setRegistrationDate(long registrationDate); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static Builder builder(); static final String DB_EMAIL_DEFAULT; static final long DB_LAST_LOGIN_DEFAULT; static final String DB_LAST_IP_DEFAULT; }### Answer:
@Test public void shouldThrowForMissingName() { try { PlayerAuth.builder() .email("test@example.org") .groupId(3) .build(); fail("Expected exception to be thrown"); } catch (NullPointerException e) { } }