@Test
public void addDeserializationExclusionStrategy() {
builder = builder.addDeserializationExclusionStrategy(new FieldNameExclusionStrategy("version"));
instance = builder.build();
String eventBody = "{\"prop1\":\"abc\",\"lastModified\":\"2002-12-11\",\"id\":\"anId\",\"occurredOn\":\"2002-04-11\",\"version\":100}";
DomainEventSub result = instance.deserialize(eventBody, DomainEventSub.class);
assertThat(result.getOccurredOn(), is(DateUtils.date(2002, 4, 11)));
assertThat(result.getLastModified(), is(DateUtils.date(2002, 12, 11)));
assertThat(result.getProp1(), is("abc"));
assertNull(result.getProp2());
assertThat(result.getId(), is("anId"));
assertThat(result.getVersion(), is(not(100)));
}