@Test
    void testOverridingOtherQueryTree() {
        Query query = new Query("?query=default:query");
        assertEquals("WEAKAND(100) default:query", query.getModel().getQueryTree().toString());
        assertEquals(Query.Type.WEAKAND, query.getModel().getType());

        query.getSelect().setWhereString("{\"contains\" : [\"default\", \"select\"] }");
        assertEquals("default:select", query.getModel().getQueryTree().toString());
        assertEquals(Query.Type.SELECT, query.getModel().getType());
    }
Tests Query.Select

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