### Question:
ChangePasswordMapper implements DataMapper<ChangePasswordData, ChangePasswordDto> { @Override public ChangePasswordDto mapEntityToDto(ChangePasswordData changePasswordData) { ChangePasswordDto result = new ChangePasswordDto(); result.setEmail(changePasswordData.getEmail()); result.setNewPassword(changePasswordData.getNewPassword()); result.setOldPassword(changePasswordData.getOldPassword()); logger.info( "Mapped ChangePasswordDto (email: " + changePasswordData.getEmail() + "to ChangePasswordDto"); return result; }  @Override ChangePasswordData mapDtoToEntity(ChangePasswordDto changePasswordDto); @Override ChangePasswordDto mapEntityToDto(ChangePasswordData changePasswordData); @Override Collection<ChangePasswordData> mapDtosToEntities(Collection<ChangePasswordDto> input); @Override Collection<ChangePasswordDto> mapEntitiesToDtos(
      Collection<ChangePasswordData> changePasswordDataSets);  }### Answer:
@Test public void mapEntityToDto_expectAllMapped() { changePasswordData.setOldPassword("oldPassword"); changePasswordData.setNewPassword("newPassword"); changePasswordData.setEmail("e@mail"); changePasswordDto = this.changePasswordMapper.mapEntityToDto(changePasswordData); assertDtoMappedCorrectly(this.changePasswordData, this.changePasswordDto); }