@Test
    void testVariantNotInBaseSpaceVariantValue() {
        QueryProfile test = new QueryProfile("test");
        test.setDimensions(new String[]{"x"});
        test.set("InX1Only", "x1", new String[]{"x 1"}, null);

        CompiledQueryProfile ctest = test.compile(null);

        assertEquals("x1", ctest.get("InX1Only", toMap("x=x 1")));
        assertNull(ctest.get("InX1Only", toMap("x=x 2")));
        assertNull(ctest.get("InX1Only"));
    }
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