@Test
    void testEquiv() {
        assertParse("select foo from bar where fieldName contains equiv(\"A\",\"B\")",
                "EQUIV fieldName:A fieldName:B");
        assertParse("select foo from bar where fieldName contains " +
                "equiv(\"ny\",phrase(\"new\",\"york\"));",
                "EQUIV fieldName:ny fieldName:\"new york\"");
        assertParseFail("select foo from bar where fieldName contains equiv(\"ny\")",
                new IllegalArgumentException("Expected 2 or more arguments, got 1."));
        assertParseFail("select foo from bar where fieldName contains equiv(\"ny\", nalle(void))",
                new IllegalArgumentException("Expected function 'phrase', got 'nalle'."));
        assertParseFail("select foo from bar where fieldName contains equiv(\"ny\", 42)",
                new ClassCastException("Cannot cast java.lang.Integer to java.lang.String"));
    }
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