Employee { public void setSalary(final Dollars salary) { this.salary = salary; } Employee();  Employee(final Long id, final String name);  Employee(final String name); Long getId(); void setId(final Long id); String getName(); void setName(final String name); boolean isWorking(); void setWorking(final boolean working); EmployeeType getType(); void setType(final EmployeeType type); Dollars getSalary(); void setSalary(final Dollars salary); Employer getEmployer(); void setEmployer(final Employer employer); List<EmployeeAccount> getAccounts(); void setAccounts(final List<EmployeeAccount> accounts);  }
@Test public void testDollarsValueTypeToDto() { final Employee e = new Employee(); e.setSalary(new com.bizo.dtonator.domain.Dollars(100)); final EmployeeDto dto = mapper.toDto(e); assertThat(dto.salary.cents, is(100)); }