@Test
public void shouldFirePreDocument() {

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