final TestService service =
this.applicationContext.getBean("dslSimpleTransferableService", TestService.class);
final Date time = new Date();
final ExtendedDataTransferObject dto = new DSLExtendedDataTransferObjectImpl();
dto.setValue("dtoVal1");
dto.setValue2("dtoVal2");
dto.setTimestamp(time);
final DomainObject entity = new DomainObjectImpl();
service.dtoToEntityBeforeExact(dto, entity);
assertEquals(entity.getValue(), "dtoVal1");
assertEquals(entity.getValue2(), "dtoVal2");
assertNull(entity.getTimestamp());
assertEquals(dto.getValue(), "dtoVal1");
assertEquals(dto.getValue2(), "dtoVal2");
assertEquals(dto.getTimestamp(), time);
}