@Test
public void customEventType() throws Exception {
SomeDomainObject sdo = new SomeDomainObject();
Identifier identifier = Identifier.propertyOrCollectionIdentifier(SomeDomainObject.class, "someDateProperty");
LocalDate oldValue = new LocalDate(2013,4,1);
LocalDate newValue = new LocalDate(2013,5,2);
final PropertyChangedEvent<SomeDomainObject, LocalDate> ev =
PostsPropertyChangedEventSetterFacet.Util.newEvent(SomeDatePropertyChangedEvent.class, sdo, identifier, oldValue, newValue);
assertThat(ev.getSource(), is(sdo));
assertThat(ev.getIdentifier(), is(identifier));