### Question:
DefaultDocumentEventPersistManager implements DocumentEventPersistManager { @Override public <T> void firePostEntity(T entity) { entityPostPersitEvent.fire(EntityPostPersit.of(entity)); }  @Override void firePreDocument(DocumentEntity entity); @Override void firePostDocument(DocumentEntity entity); @Override void firePreEntity(T entity); @Override void firePostEntity(T entity); @Override void firePreDocumentEntity(T entity); @Override void firePostDocumentEntity(T entity); @Override void firePreQuery(DocumentQuery query); @Override void firePreDeleteQuery(DocumentDeleteQuery query);  }### Answer:
@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()); }