@Test
    void testSimpleQueryParsing() {
        Query q = newQuery("/search?query=foobar&offset=10&hits=20&type=all");
        assertEquals("foobar", ((WordItem) q.getModel().getQueryTree().getRoot()).getWord());
        assertEquals(10, q.getOffset());
        assertEquals(20, q.getHits());
    }
Tests for query class

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