@Test
    void testOverridingWhereQueryTree() {
        Query query = new Query("?query=default:query");
        query.getSelect().setWhereString("{\"contains\" : [\"default\", \"select\"] }");
        assertEquals("default:select", query.getModel().getQueryTree().toString());
        assertEquals(Query.Type.SELECT, query.getModel().getType());

        query.getModel().setQueryString("default:query");
        query.getModel().setType("all");
        assertEquals("default:query", query.getModel().getQueryTree().toString());
        assertEquals(Query.Type.ALL, query.getModel().getType());
    }
Tests Query.Select

@author henrhoi
@author bratseth
container-search/src/test/java/com/yahoo/select/SelectTestCase.java