@Test
    void testIn() {
        parser = new YqlParser(new ParserEnvironment().setIndexFacts(createIndexFactsForInTest()));
        parser.setUserQuery(createUserQuery());
        var query = parse("select * from sources * where field in (42, 22L, -7, @foonumeric)");
        assertNumericInItem("field", new long[]{-11, -7, 22, 24, 25, 26, 42}, query);
        parser.setUserQuery(createUserQuery());
        query = parse("select * from sources * where string in ('a','b', @foostring)");
        assertStringInItem("string", new String[]{"a","b","might","this", "work"}, query);
        parser.setUserQuery(null);
        assertParseFail("select * from sources * where field in (29.9, -7.4)",
                new ClassCastException("Cannot cast java.lang.Double to java.lang.Long"));
        assertParseFail("select * from sources * where string in ('a', 25L)",
                new ClassCastException("Cannot cast java.lang.Long to java.lang.String"));
        assertParseFail("select * from sources * where field in ('a', 25L)",
                new ClassCastException("Cannot cast java.lang.String to java.lang.Number"));
        assertParseFail("select * from sources * where nofield in ('a', 25L)",
                new IllegalArgumentException("Field 'nofield' does not exist."));
        assertParseFail("select * from sources * where field not in (25)",
                new IllegalArgumentException("Expected AND, CALL, CONTAINS, EQ, GT, GTEQ, IN, LT, LTEQ or OR, got NOT_IN."));
        assertParseFail("select * from sources * where float in (25)",
                new IllegalArgumentException("The in operator is only supported for integer and string fields. " +
                        "The field float is not of these types"));
        assertParseFail("select * from sources * where mixed in (25)",
                new IllegalArgumentException("The in operator is not supported for fieldsets with a mix of integer " +
                        "and string fields. The fieldset mixed has both"));
    }
Verifies that we can search for a backslash
container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java