@Test
    void testOrPhraseQueryWithDefaultIndexAdvancedParsing() {
        Query q = newQuery("/search?query=(\"fOObar\") AND kanoo&type=adv&default-index=def");
        assertEquals("AND def:fOObar def:kanoo", q.getModel().getQueryTree().getRoot().toString());
    }
Tests for query class

@author Bjorn Borud
container-search/src/test/java/com/yahoo/prelude/test/QueryTestCase.java