@Test
public void shouldFirePreDocumentEntity() {

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