### Question:
ChangePasswordMapper implements DataMapper<ChangePasswordData, ChangePasswordDto> { @Override public ChangePasswordData mapDtoToEntity(ChangePasswordDto changePasswordDto) { ChangePasswordData result = new ChangePasswordData(); result.setEmail(changePasswordDto.getEmail()); result.setNewPassword(changePasswordDto.getNewPassword()); result.setOldPassword(changePasswordDto.getOldPassword()); logger.info( "Mapped ChangePasswordDto (email: " + changePasswordDto.getEmail() + ") to ChangePasswordData"); 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 mapDtoToEntity_expectAllMapped() { changePasswordDto.setOldPassword("oldPassword"); changePasswordDto.setNewPassword("newPassword"); changePasswordDto.setEmail("e@mail"); changePasswordData = this.changePasswordMapper.mapDtoToEntity(changePasswordDto); assertEnitityMappedCorrectly(this.changePasswordDto, this.changePasswordData); }