@Test
    void testVariantsOfInlineCompound() {
        QueryProfile profile = new QueryProfile("test");
        profile.setDimensions(new String[]{"x"});
        profile.set("a.b", "a.b", null);
        profile.set("a.b", "a.b.x1", new String[]{"x1"}, null);
        profile.set("a.b", "a.b.x2", new String[]{"x2"}, null);

        CompiledQueryProfile cprofile = profile.compile(null);

        assertEquals("a.b", cprofile.get("a.b"));
        assertEquals("a.b.x1", cprofile.get("a.b", toMap("x=x1")));
        assertEquals("a.b.x2", cprofile.get("a.b", toMap("x=x2")));
    }
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