@Test
    void testCustomUserInputWithTwoDefaultIndexes() {
        URIBuilder builder = searchUri();
        builder.setParameter("query", "foo");
        builder.setParameter("yql",
                             "select * from sources * where ({defaultIndex: 'fields1'}userInput(@query)) or ({defaultIndex: 'field2'}userInput(@query))");
        Query query = searchAndAssertNoErrors(builder);
        assertEquals("select * from sources * where (weakAnd(fields1 contains \"foo\") OR weakAnd(field2 contains \"foo\"))", query.yqlRepresentation());
    }
Tests where you really test YqlParser but need the full Query infrastructure.

@author steinar
container-search/src/test/java/com/yahoo/search/yql/UserInputTestCase.java