### Question:
UserDTO extends User { public String getUsername() { return username; } UserDTO();  UserDTO(User entity); String getNewPassword(); void setNewPassword(String newPassword); String getTicket(); void setTicket(String ticket); String getUsername(); void setUsername(String username);  }### Answer:
@Test public void getUsername() throws Exception { dto.setUsername("username"); assertEquals("username", dto.getUsername()); }