@Test
    void testIncompatibleDimensions() {
        QueryProfile alert = new QueryProfile("alert");

        QueryProfile backendBase = new QueryProfile("backendBase");
        backendBase.setDimensions(new String[]{"sort", "resulttypes", "rss"});
        backendBase.set("custid", "s", null);

        QueryProfile backend = new QueryProfile("backend");
        backend.setDimensions(new String[]{"sort", "offset", "resulttypes", "rss", "age", "lang", "fr", "entry"});
        backend.addInherited(backendBase);

        QueryProfile web = new QueryProfile("web");
        web.setDimensions(new String[]{"entry", "recency"});
        web.set("fr", "alerts", new String[]{"alert"}, null);

        alert.set("config.backend.vertical.news", backend, null);
        alert.set("config.backend.multimedia", web, null);
        backend.set("custid", "yahoo/alerts", new String[]{null, null, null, null, null, "en-US", null, "alert"}, null);

        CompiledQueryProfile cAlert = alert.compile(null);
        assertEquals("yahoo/alerts", cAlert.get("config.backend.vertical.news.custid", toMap("entry=alert", "intl=us", "lang=en-US")));
    }
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