assertThat(result.getVersion(), is(not(100)));
}
@Test
public void beanCopy() {
DomainEventSubDto dto = new DomainEventSubDto();
dto.setId("anId");
dto.setTransientField("transient");
dto.setOccurredOn("2002-04-11");
dto.setProp1("abc");
dto.setVersion("234");
DomainEventSub event = instance.deserialize(instance.serialize(dto), DomainEventSub.class);
assertThat(event.getId(), is("anId"));
assertThat(event.getOccurredOn(), is(DateUtils.date(2002, 4, 11)));
assertThat(event.getTransientField(), nullValue());
assertThat(event.getProp1(), is("abc"));