@Test
    void testVariants() {
        QueryProfileRegistry registry = new QueryProfileXMLReader().read(root + "variants");
        QueryProfiles profiles = new QueryProfiles(registry, new TestableDeployLogger());
        QueryProfileRegistry registryFromConfig = QueryProfileConfigurer.createFromConfig(profiles.getConfig());
        CompiledQueryProfile profile = registryFromConfig.compile().getComponent("default");

        assertEquals("a.b.c-value", new Query("?d1=d1v", profile).properties().get("a.b.c"));
        assertEquals("a.b.c-variant-value", new Query("?d1=d1v&d2=d2v", profile).properties().get("a.b.c"));

        assertEquals("query-value", new Query("?d1=d1v&a.b.c=query-value", profile).properties().get("a.b.c"));
        assertEquals("a.b.c-variant-value", new Query("?d1=d1v&d2=d2v&a.b.c=query-value", profile).properties().get("a.b.c"));
    }
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