@Test
    void testVariantInheritanceOverridesBaseInheritance1() {
        QueryProfile test = new QueryProfile("test");
        QueryProfile baseInherited = new QueryProfile("baseInherited");
        baseInherited.set("a.b", "baseInherited-a.b", null);
        QueryProfile variantInherited = new QueryProfile("variantInherited");
        variantInherited.set("a.b", "variantInherited-a.b", null);
        test.setDimensions(new String[]{"x"});
        test.addInherited(baseInherited);
        test.addInherited(variantInherited, new String[]{"x1"});

        CompiledQueryProfile ctest = test.compile(null);
        assertEquals("baseInherited-a.b", ctest.get("a.b"));
        assertEquals("variantInherited-a.b", ctest.get("a.b", toMap("x=x1")));
    }
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