### Question:
UserDTO extends User { public UserDTO() { super(); } 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 userDTO() { UserDTO dto = new UserDTO(); dto.setNewPassword("123123"); dto.setUsername("admin@robe.io"); String ticket = UUID.randomUUID().toString(); dto.setTicket(ticket); Assert.assertEquals(dto.getTicket(), ticket); Assert.assertEquals(dto.getNewPassword(), "123123"); Assert.assertEquals(dto.getUsername(), "admin@robe.io"); }