Employee { public Dollars getSalary() { return 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 testDollarsValueTypeFromDto() { final EmployeeDto dto = new EmployeeDto(null, "e", new Dollars(100), null, true); final Employee e = mapper.fromDto(dto); assertThat(e.getSalary().cents, is(100)); }