@Test
    void testVariantInheritanceSimplified() {
        QueryProfile test = new QueryProfile("test");
        test.setDimensions(new String[]{"x", "y"});
        QueryProfile x1y2Parent = new QueryProfile("x1y2Parent");
        x1y2Parent.set("c", "c-x1y2", null);
        test.addInherited(x1y2Parent, new String[]{"x1", "y2"});
        test.set("c", "c-x1", new String[]{"x1"}, null);

        CompiledQueryProfile ctest = test.compile(null);

        assertNull(ctest.get("c"));
        assertEquals("c-x1", ctest.get("c", toMap("x=x1")));
        assertEquals("c-x1", ctest.get("c", toMap("x=x1", "y=y1")));
        assertEquals("c-x1y2", ctest.get("c", toMap("x=x1", "y=y2")));
    }
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