@Test
    void testAdvancedQueryParsing() {
        Query q = newQuery("/search?query=fOObar and kanoo&offset=10&hits=20&filter=-foo +bar&type=adv&suggestonly=true");
        assertEquals("AND (+(AND fOObar kanoo) -|foo) |bar", q.getModel().getQueryTree().getRoot().toString());
        assertEquals(10, q.getOffset());
        assertEquals(20, q.getHits());
        assertEquals(true, q.properties().getBoolean("suggestonly", false));
    }
Tests for query class

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