@Test
public void shouldNegate() {

    DocumentQuery query = select().from("collection")
            .where("city").not().eq("Assis")
            .and("name").eq("Otavio")
            .or("name").not().eq("Lucas").build();
    QueryOSQLConverter.Query convert = QueryOSQLConverter.select(query);
    String sql = convert.getQuery();
    List<Object> values = convert.getParams();
    assertEquals(3, values.size());
    assertEquals("Assis", values.get(0));
    assertEquals("Otavio", values.get(1));
    assertEquals("Lucas", values.get(2));
    assertEquals("SELECT FROM collection WHERE NOT (city = ?) AND name = ? OR NOT (name = ?)", sql);
}