@Test
public void shouldFirePostDocumentEntity() {

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