@Test
    void testRuntimeAssignmentInClone() {
        QueryProfile test = new QueryProfile("test");
        test.setDimensions(new String[]{"x"});
        String[] x1 = new String[]{"x1"};
        Map<String, String> x1m = toMap(test, x1);
        test.set("a", "30", x1, null);
        test.set("a.b", "20", x1, null);
        test.set("a.b.c", "10", x1, null);

        // Setting in one profile works
        Query qMain = new Query(HttpRequest.createTestRequest("?query=test", Method.GET), test.compile(null));
        qMain.properties().set("a.b", "50", x1m);
        assertEquals("50", qMain.properties().get("a.b", x1m));

        // Cloning
        Query qBranch = qMain.clone();

        // Setting in main still works
        qMain.properties().set("a.b", "51", x1m);
        assertEquals("51", qMain.properties().get("a.b", x1m));

        // Clone is not affected by change in original
        assertEquals("50", qBranch.properties().get("a.b", x1m));

        // Setting in clone works
        qBranch.properties().set("a.b", "70", x1m);
        assertEquals("70", qBranch.properties().get("a.b", x1m));

        // Setting in clone does not affect original
        assertEquals("51", qMain.properties().get("a.b", x1m));
    }
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