@Test
    void testNewsCase1() {
        QueryProfile shortcuts = new QueryProfile("shortcuts");
        shortcuts.setDimensions(new String[]{"custid_1", "custid_2", "custid_3", "custid_4", "custid_5", "custid_6"});
        shortcuts.set("testout", "outside", null);
        shortcuts.set("test.out", "dotoutside", null);
        shortcuts.set("testin", "inside", new String[]{"yahoo", "ca", "sc"}, null);
        shortcuts.set("test.in", "dotinside", new String[]{"yahoo", "ca", "sc"}, null);

        QueryProfile profile = new QueryProfile("default");
        profile.setDimensions(new String[]{"custid_1", "custid_2", "custid_3", "custid_4", "custid_5", "custid_6"});
        profile.addInherited(shortcuts, new String[]{"yahoo", null, "sc"});

        profile.freeze();
        Query query = new Query(HttpRequest.createTestRequest("?query=test&custid_1=yahoo&custid_2=ca&custid_3=sc", Method.GET), profile.compile(null));

        assertEquals("outside", query.properties().get("testout"));
        assertEquals("dotoutside", query.properties().get("test.out"));
        assertEquals("inside", query.properties().get("testin"));
        assertEquals("dotinside", query.properties().get("test.in"));
    }
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