User implements Serializable, ITransferObject { public String getDn() { return dn; }  Integer getId(); boolean isActive(); void setActive(boolean active); String getLogin(); void setLogin(String login); String getPassword(); void setPassword(String password); String getName(); void setName(String name); Date getStartDate(); void setStartDate(Date startDate); String getNif(); void setNif(String nif); UserGenre getGenre(); void setGenre(UserGenre genre); String getSocialSecurityNumber(); void setSocialSecurityNumber(String socialSecurityNumber); boolean isWorkingInClient(); void setWorkingInClient(boolean workingInClient); Date getBirthDate(); void setBirthDate(Date birthDate); boolean isMarried(); void setMarried(boolean married); int getChildrenNumber(); void setChildrenNumber(int childrenNumber); String getTravelAvailability(); void setTravelAvailability(String travelAvailability); String getAcademicQualification(); void setAcademicQualification(String academicQualification); String getEmail(); void setEmail(String email); String getPhone(); void setPhone(String phone); String getMobile(); void setMobile(String mobile); String getStreet(); void setStreet(String street); String getPostalCode(); void setPostalCode(String postalCode); String getCity(); void setCity(String city); String getBank(); void setBank(String bank); String getAccount(); void setAccount(String account); BigDecimal getSalary(); void setSalary(BigDecimal salary); BigDecimal getSalaryExtras(); void setSalaryExtras(BigDecimal salaryExtras); String getDrivenLicenseType(); void setDrivenLicenseType(String drivenLicenseType); String getVehicleType(); void setVehicleType(String vehicleType); String getLicensePlate(); void setLicensePlate(String licensePlate); String getSecurityCard(); void setSecurityCard(String securityCard); String getHealthInsurance(); void setHealthInsurance(String healthInsurance); String getNotes(); void setNotes(String notes); String getPhoto(); void setPhoto(String photo); Date getEndTestPeriodDate(); void setEndTestPeriodDate(Date endTestPeriodDate); Date getEndContractDate(); void setEndContractDate(Date endContractDate); int getDayDuration(); void setDayDuration(int dayDuration); String getContractObservations(); void setContractObservations(String contractObservations); Date getInsertDate(); void setInsertDate(Date insertDate); Date getUpdateDate(); void setUpdateDate(Date updateDate); Role getRole(); void setRole(Role role); UserCategory getCategory(); void setCategory(UserCategory category); Province getProvince(); void setProvince(Province province); DocumentCategory getDocumentCategory(); void setDocumentCategory(DocumentCategory documentCategory); Department getDepartment(); void setDepartment(Department department); ContractType getContractType(); void setContractType(ContractType contractType); WorkingAgreement getAgreement(); void setAgreement(WorkingAgreement agreement); Integer getOwnerId(); Integer getDepartmentId(); void setOwnerId(Integer ownerId); void setDepartmentId(Integer departmentId); Integer getAgreementYearDuration(); void setAgreementYearDuration(Integer agreementYearDuration); double getSalaryPerHour(); Double getCostPerHour(); Date getPasswordExpireDate(); void setPasswordExpireDate(Date passwordExpireDate); boolean isPasswordExpired(); void setPasswordExpired(Boolean expiredPassword); @Override boolean equals(Object that); @Override int hashCode(); List<Integer> getOwnersId(); String getLdapPassword(); void setLdapPassword(String ldapPassword); Boolean isLdapAuthentication(); void setDn(String dn); String getDn(); void setLdapName(String ldapName); String getLdapName(); String buildLdapName(); void setResetPassword(Boolean resetPassword); Boolean isResetPassword();  }
@Test public void getDn() throws Exception { assertThat(user.getDn(),is(OLD_DN)); user.setDn(NEW_DN); assertThat(user.getDn(),is(NEW_DN)); }