String address = "123 Main Street";
final Person person = new PersonImpl(id, name);
person.setAddress(address);
PersonWithAddressDTO personWithAddressDTO = mapper.map(newInstance(new Class[] { Person.class }, person),
PersonWithAddressDTO.class);
assertEquals("Person DTO has incorrect personId value", id, personWithAddressDTO.getPersonId());
assertNotNull("name should not be null", personWithAddressDTO.getName());
assertEquals("Person DTO has incorrect name value", name, personWithAddressDTO.getName());
assertNotNull("addresss should not be null", personWithAddressDTO.getAddress());
assertEquals("Person DTO has incorrect address value", address, personWithAddressDTO.getAddress());
}