DefaultColumnEventPersistManager implements ColumnEventPersistManager { @Override public void firePreQuery(ColumnQuery query) { columnQueryExecute.fire(ColumnQueryExecute.of(query)); }  @Override void firePreColumn(ColumnEntity entity); @Override void firePostColumn(ColumnEntity entity); @Override void firePreEntity(T entity); @Override void firePostEntity(T entity); @Override void firePreColumnEntity(T entity); @Override void firePostColumnEntity(T entity); @Override void firePreQuery(ColumnQuery query); @Override void firePreDeleteQuery(ColumnDeleteQuery query);  }
@Test public void shouldFirePreQuery() { ColumnQuery query = select().from("person").build(); subject.firePreQuery(query); ArgumentCaptor<ColumnQueryExecute> captor = ArgumentCaptor.forClass(ColumnQueryExecute.class); verify(columnQueryExecute).fire(captor.capture()); assertEquals(query, captor.getValue().getQuery()); }