@Test
    void testAffixItems() {
        assertRootClass("select foo from bar where baz contains ({suffix: true}\"colors\")",
                SuffixItem.class);
        assertRootClass("select foo from bar where baz contains ({prefix: true}\"colors\")",
                PrefixItem.class);
        assertRootClass("select foo from bar where baz contains ({substring: true}\"colors\")",
                SubstringItem.class);
        assertParseFail("select foo from bar where description contains ({suffix: true, " +
                "prefix: true}\"colors\")",
                new IllegalArgumentException("Only one of prefix, substring and suffix can be set."));
        assertParseFail("select foo from bar where description contains ({suffix: true, " +
                "substring: true}\"colors\")",
                new IllegalArgumentException("Only one of prefix, substring and suffix can be set."));
    }
Specification for the conversion of YQL+ expressions to Vespa search queries.

@author Steinar Knutsen
@author Stian Kristoffersen
container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java