@Test
    void testAndNot() {
        ObjectNode json_and_not = jsonMapper.createObjectNode();
        ArrayNode contains1 = jsonMapper.createArrayNode().add("title").add("madonna");
        ArrayNode contains2 = jsonMapper.createArrayNode().add("title").add("saint");

        ObjectNode contains_json1 = jsonMapper.createObjectNode();
        ObjectNode contains_json2 = jsonMapper.createObjectNode();
        contains_json1.set("contains", contains1);
        contains_json2.set("contains", contains2);

        json_and_not.set("and_not", jsonMapper.createArrayNode().add(contains_json1).add(contains_json2));

        assertParse(json_and_not.toString(),
                "+title:madonna -title:saint");
    }
Tests Query.Select

@author henrhoi
@author bratseth
container-search/src/test/java/com/yahoo/select/SelectTestCase.java