@Test
    void testSubstitutionInTrace() {
        QueryProfile profile = new QueryProfile("test");
        profile.set("property", "%{foo}", null);
        CompiledQueryProfile cProfile = profile.compile(null);

        Query query = new Query("?foo=value&tracelevel=4", cProfile);
        assertEquals("value", query.properties().get("property"));
        assertTrue(traceContains("foo: value", query));
    }
Tests having both an explicit reference and an override
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileTestCase.java