@Test
public void shouldFirePreEntity() {

    Jedi jedi = new Jedi();
    jedi.name = "Luke";
    subject.firePreEntity(jedi);
    ArgumentCaptor<EntityPrePersist> captor = ArgumentCaptor.forClass(EntityPrePersist.class);
    verify(entityPrePersistEvent).fire(captor.capture());
    EntityPrePersist value = captor.getValue();
    assertEquals(jedi, value.getValue());
}