@Override
        public Result search(Query query, Execution execution) {
            query.trace("During " + name + ": " + (counter++), traceQuery, 1);
            return execution.search(query);
        }
Tests tracing scenarios where traces from multiple executions over the same query are involved.

@author bratseth
container-search/src/test/java/com/yahoo/search/searchchain/test/TraceTestCase.java