@Test
public void shouldFirePreQuery() {

    DocumentQuery query = select().from("collection").build();
    subject.firePreQuery(query);
    ArgumentCaptor<DocumentQueryExecute> captor = ArgumentCaptor.forClass(DocumentQueryExecute.class);
    verify(documentQueryExecute).fire(captor.capture());
    assertEquals(query, captor.getValue().getQuery());
}