@Test
    void testReference() {
        QueryProfileRegistry registry = new QueryProfileRegistry();
        QueryProfile test = new QueryProfile("test");
        registry.register(test);

        QueryProfile references = new QueryProfile("referenced");
        registry.register(references);

        QueryProfile other = new QueryProfile("other");
        registry.register(other);

        test.set("a", references, registry);
        test.set("a.b", "test-value", registry);
        other.set("a", references, registry);
        other.set("a.b", "other-value", registry);

        assertEquals("test-value", test.get("a.b"));
        assertEquals("other-value", other.get("a.b"));
        assertNull(references.get("b"));
    }
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