@Test
    void testAnd() {
        ObjectNode json_two_and = jsonMapper.createObjectNode();
        ObjectNode json_three_and = jsonMapper.createObjectNode();
        ArrayNode contains1 = jsonMapper.createArrayNode().add("title").add("madonna");
        ArrayNode contains2 = jsonMapper.createArrayNode().add("title").add("saint");
        ArrayNode contains3 = jsonMapper.createArrayNode().add("title").add("angel");

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

        json_two_and.set("and", jsonMapper.createArrayNode().add(contains_json1).add(contains_json2));
        json_three_and.set("and", jsonMapper.createArrayNode().add(contains_json1).add(contains_json2).add(contains_json3));

        assertParse(json_two_and.toString(), "AND title:madonna title:saint");
        assertParse(json_three_and.toString(), "AND title:madonna title:saint title:angel");
    }
Tests Query.Select

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