@Test
public void shouldFirePostEntity() {

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