private boolean traceContains(String string, Query query) {
        for (TraceNode node : query.getContext(true).getTrace().traceNode().children())
            if (node.payload().toString().contains(string))
                return true;
        return false;
    }
Tests having both an explicit reference and an override
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileTestCase.java