this.applicationContext.getBean("annSimpleTransferableService", TestService.class);
assertCountersAreZero();
final Date time = new Date();
final ExtendedDataTransferObject dto = new AnnotatedExtendedDataTransferObjectImpl();
dto.setValue("dtoVal1");
dto.setValue2("dtoVal2");
dto.setTimestamp(time);
final DomainObject entity = new DomainObjectImpl();
final ExtendedDataTransferObject res = (ExtendedDataTransferObject) service.dtoToEntityAndBackToDto(dto, entity, new Object());
assertNotSame(res, dto);
assertEquals(entity.getValue(), "dtoVal2");
assertEquals(entity.getValue2(), "dtoVal1");
assertNotNull(entity.getTimestamp());
assertTrue(entity.getTimestamp().after(time));
assertEquals(dto.getValue(), "dtoVal1");
assertEquals(dto.getValue2(), "dtoVal2");
assertEquals(dto.getTimestamp(), time);
assertEquals(res.getValue(), "dtoVal2");
assertEquals(res.getValue2(), "dtoVal1");
assertEquals(res.getTimestamp(), entity.getTimestamp());