@Test
    void testUserInputWithNonPhraseSegmentingIndex() {
        execution = new Execution(searchChain, Execution.Context.createContextStub(createIndexFacts(false)));
        URIBuilder builder = searchUri();
        builder.setParameter("wql", "foo&bar");
        builder.setParameter("yql", "select * from sources * where ([{\"defaultIndex\": \"text_field\",\"grammar\": \"any\"}]userInput(@wql))");
        Query query = searchAndAssertNoErrors(builder);
        assertEquals("select * from sources * where (text_field contains \"foo\" AND text_field contains \"bar\")", 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