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

    IObject criteria = new DSObject("{ \"filter\": { } }");
    PostgresSchema.search(statement, collection, criteria);
    assertEquals("SELECT document FROM test_collection WHERE (TRUE) LIMIT(?)OFFSET(?)", body.toString());
    verify(statement, times(1)).pushParameterSetter(any());
}