@Test
    void testOverlappingProfiles() {
        QueryProfile profile = new QueryProfile("test");
        profile.setDimensions(new String[]{"region", "model", "bucket"});
        profile.set("a", "us,nokia,*  : a", new String[]{"us", "nokia", null     }, null);
        profile.set("b", "us,nokia,*  : b", new String[]{"us", "nokia", null     }, null);
        profile.set("c", "us,*,bucket1: c", new String[]{"us", null,    "bucket1"}, null);
        profile.set("d", "us,*,bucket1: d", new String[]{"us", null,    "bucket1"}, null);

        CompiledQueryProfile cprofile = profile.compile(null);
        var parameters = toMap("region=us", "model=nokia", "bucket=bucket1");
        assertEquals("us,nokia,*  : a", cprofile.get("a", parameters));
        assertEquals("us,nokia,*  : b", cprofile.get("b", parameters));
        assertEquals("us,*,bucket1: c", cprofile.get("c", parameters));
        assertEquals("us,*,bucket1: d", cprofile.get("d", parameters));

        String listedKeys =
                cprofile.listValues("", parameters).keySet().stream().sorted().collect(Collectors.joining(", "));
        assertEquals("a, b, c, d", listedKeys);
    }
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