### Question:
ForgotPasswordMapper implements DataMapper<ForgotPassword, ForgotPasswordDto> { @Override public ForgotPasswordDto mapEntityToDto(ForgotPassword input) { ForgotPasswordDto output = new ForgotPasswordDto(); output.setEmail(input.getEmail()); logger.debug("Mapped ForgotPassword to ForgotPasswordDto."); return output; }  @Override ForgotPassword mapDtoToEntity(ForgotPasswordDto input); @Override ForgotPasswordDto mapEntityToDto(ForgotPassword input); @Override Collection<ForgotPassword> mapDtosToEntities(Collection<ForgotPasswordDto> input); @Override Collection<ForgotPasswordDto> mapEntitiesToDtos(Collection<ForgotPassword> input);  }### Answer:
@Test public void mapEntityToDto_expectAllMapped() { forgotPassword.setEmail("test@example.com"); forgotPasswordDto = forgotPasswordMapper.mapEntityToDto(forgotPassword); assertMapped(forgotPassword, forgotPasswordDto); }