@Test
    void testOrQueryWithDefaultIndexWeakAndParsing() {
        Query q = newQuery("/search?query=(fOObar foobar) kanoo&type=weakAnd&default-index=def");
        assertEquals("WEAKAND(100) (OR def:fOObar 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