@Test
    void testValidation() {
        QueryProfileRegistry registry = new QueryProfileRegistry();
        QueryProfileTypeRegistry typeRegistry = registry.getTypeRegistry();

        QueryProfileType userType = new QueryProfileType("user");
        typeRegistry.register(userType);

        DeployLoggerStub logger = new DeployLoggerStub();
        new QueryProfiles(registry, logger);
        assertEquals(1, logger.entries.size());
        assertEquals("This application define query profile types, but has no query profiles referencing them " +
                "so they have no effect. " +
                "See https://docs.vespa.ai/en/query-profiles.html",
                logger.entries.get(0).message);
    }
Tests generation of config from query profiles (XML reading is tested elsewhere)

@author bratseth
config-model/src/test/java/com/yahoo/vespa/model/container/search/test/QueryProfilesTestCase.java