@Test
    void testRankTypeNames() {
        QueryProfile p = new QueryProfile("test");
        p.set("a.$b", "foo", null);
        p.set("a.query(b)", "bar", null);
        p.set("a.b.default-index", "fuu", null);
        CompiledQueryProfile cp = p.compile(null);

        assertEquals("foo", cp.get("a.$b"));
        assertEquals("bar", cp.get("a.query(b)"));
        assertEquals("fuu", cp.get("a.b.default-index"));

        Map<String, Object> p1 = cp.listValues("");
        assertEquals("foo", p1.get("a.$b"));
        assertEquals("bar", p1.get("a.query(b)"));
        assertEquals("fuu", p1.get("a.b.default-index"));

        Map<String, Object> p2 = cp.listValues("a");
        assertEquals("foo", p2.get("$b"));
        assertEquals("bar", p2.get("query(b)"));
        assertEquals("fuu", p2.get("b.default-index"));
    }
Tests having both an explicit reference and an override
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileTestCase.java