@Test
public void customEventType() throws Exception {
SomeDomainObject sdo = new SomeDomainObject();
SomeReferencedObject other = new SomeReferencedObject();
Identifier identifier = Identifier.propertyOrCollectionIdentifier(SomeDomainObject.class, "references");
final CollectionInteractionEvent<SomeDomainObject, SomeReferencedObject> ev = new InteractionHelper(null).newCollectionInteractionEvent(
SomeDomainObjectCollectionRemovedFromEvent.class, AbstractInteractionEvent.Phase.EXECUTED, identifier, sdo, CollectionInteractionEvent.Of.REMOVE_FROM, other);
assertThat(ev.getSource(), is(sdo));
assertThat(ev.getIdentifier(), is(identifier));