@Test
    void testVariantInheritanceOverridesBaseInheritanceMixed() {
        QueryProfile root = new QueryProfile("root");
        root.set("model.defaultIndex", "default", null);

        QueryProfile multi = new QueryProfile("multi");
        multi.setDimensions(new String[]{"x"});
        multi.set("model.defaultIndex", "title", null);
        multi.set("model.queryString", "modelQuery", null);
        multi.addInherited(root, new String[]{"x1"});
        multi.set("model.queryString", "modelVariantQuery", new String[]{"x1"}, null);

        CompiledQueryProfile cmulti = multi.compile(null);
        assertEquals("default", cmulti.get("model.defaultIndex", toMap("x=x1")));
        assertEquals("modelVariantQuery", cmulti.get("model.queryString", 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