@Test
    void testNewsCase2() {
        QueryProfile test = new QueryProfile("test");
        test.setDimensions("sort,resulttypes,rss,age,intl,testid".split(","));
        String[] dimensionValues = new String[]{null, null, "0"};
        test.set("discovery", "sources", dimensionValues, null);
        test.set("discoverytypes", "article", dimensionValues, null);
        test.set("discovery.sources.count", "10", dimensionValues, null);

        CompiledQueryProfile ctest = test.compile(null);

        assertEquals("sources", ctest.get("discovery", toMap(test, dimensionValues)));
        assertEquals("article", ctest.get("discoverytypes", toMap(test, dimensionValues)));
        assertEquals("10", ctest.get("discovery.sources.count", toMap(test, dimensionValues)));

        Map<String, Object> values = ctest.listValues("", toMap(test, dimensionValues));
        assertEquals(3, values.size());
        assertEquals("sources", values.get("discovery"));
        assertEquals("article", values.get("discoverytypes"));
        assertEquals("10", values.get("discovery.sources.count"));

        Map<String, Object> sourceValues = ctest.listValues("discovery.sources", toMap(test, dimensionValues));
        assertEquals(1, sourceValues.size());
        assertEquals("10", sourceValues.get("count"));
    }
Tests referencing a variant which modifies the dimension set,
and also setting a value within that variants subspace.
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileVariantsTestCase.java