@Test
public void shouldFirePostDocument() {

    DocumentEntity entity = DocumentEntity.of("collection");
    subject.firePostDocument(entity);
    ArgumentCaptor<DocumentEntityPostPersist> captor = ArgumentCaptor.forClass(DocumentEntityPostPersist.class);
    verify(documentEntityPostPersistEvent).fire(captor.capture());
    DocumentEntityPostPersist captorValue = captor.getValue();
    assertEquals(entity, captorValue.getEntity());
}