@Test
    @Disabled
    void testSwitchingDimensionOrderInReferencedVariantWithPartialOverlap() {
        QueryProfileRegistry registry = new QueryProfileRegistry();
        QueryProfile profile = new QueryProfile("test");
        profile.setDimensions(new String[]{"x", "i", "j", "y"});
        QueryProfile referenced = new QueryProfile("referenced");
        referenced.setDimensions(new String[]{"y", "x"});
        registry.register(profile);
        registry.register(referenced);
        profile.set("a.b", referenced, new String[]{"x1", "i1", "j1"}, registry);
        referenced.set("c", "variant_value", new String[]{"y1"}, registry);

        CompiledQueryProfileRegistry cRegistry = registry.compile();
        CompiledQueryProfile cTest = cRegistry.findQueryProfile("test");

        assertEquals("variant_value", new Query("?x=x1&i=i1&j=j1&y=y1", cTest).properties().get("a.b.c"));
    }
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