@Test
    void testQueryProfileInlineValueReassignmentSimpleName() {
        QueryProfile p = new QueryProfile("test");
        p.set("key", "%{model.queryString}", null);
        p.freeze();
        Query q = new Query(HttpRequest.createTestRequest("?query=foo", Method.GET), p.compile(null));
        assertEquals("foo", q.properties().get("key"));
        assertEquals("foo", q.properties().listProperties().get("key"));
        q.getModel().setQueryString("bar");
        assertEquals("bar", q.properties().get("key"));
        assertEquals("bar", q.properties().listProperties().get("key"));
    }
Tests having both an explicit reference and an override
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileTestCase.java