assertCountersAreZero();
final Date time = new Date();
final ExtendedDataTransferObject dto = new AnnotatedExtendedDataTransferObjectImpl();
final DomainObject entity = new DomainObjectImpl();
entity.setValue("entityVal1");
entity.setValue2("entityVal2");
entity.setTimestamp(time);
service.entityToDtoBefore(dto, entity, new Object());
assertEquals(entity.getValue(), "entityVal1");
assertEquals(entity.getValue2(), "entityVal2");
assertEquals(entity.getTimestamp(), time);
assertEquals(dto.getValue(), "entityVal1");
assertEquals(dto.getValue2(), "entityVal2");
assertEquals(dto.getTimestamp(), time);