@Test
    void testQueryType() {
        QueryProfileRegistry registry =
                new QueryProfileXMLReader().read("src/test/java/com/yahoo/search/query/profile/config/test/querytype");
        var cRegistry = registry.compile();
        var query = new Query("?test", cRegistry.findQueryProfile("default"));
        QueryType queryType = query.getModel().getQueryType();
        assertEquals(Query.Type.ALL, queryType.getType());
        assertEquals(QueryType.Syntax.web, queryType.getSyntax());
    }
Test reading a (built-in) query profile that has a value at a non-root: query.type
container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java