@Test
public void testSearchWithNullCriteria() throws InvalidArgumentException, QueryBuildException {

    PostgresSchema.search(statement, collection, null);
    assertEquals("SELECT document FROM test_collection LIMIT(?)OFFSET(?)", body.toString());
    verify(statement, times(1)).pushParameterSetter(any());
}