@Test
    void testVariantsAreResolvedBeforeInheritanceSimplified() {
        QueryProfile parent = new QueryProfile("parent");
        parent.setDimensions(new String[]{"x", "y"});
        parent.set("a", "p.a.x1.y2", new String[]{"x1", "y2"}, null);

        QueryProfile child = new QueryProfile("child");
        child.setDimensions(new String[]{"x", "y"});
        child.addInherited(parent);
        child.set("a", "c.a.default", null);

        assertEquals("c.a.default", child.compile(null).get("a", 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