@Test
    void testAnyQueryParsing() {
        Query q = newQuery("/search?query=foobar and kanoo&offset=10&hits=10&type=any&suggestonly=true&filter=-fast.type:offensive&encoding=latin1");
        assertEquals("+(OR foobar and kanoo) -|fast.type:offensive", q.getModel().getQueryTree().getRoot().toString());
        assertEquals(10, q.getOffset());
        assertEquals(10, q.getHits());
        assertEquals(true, q.properties().getBoolean("suggestonly", false));
        assertEquals("latin1", q.getModel().getEncoding());
    }
Tests for query class

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