@Test
    void testReportGeneration() {
        TimeTracker t = new TimeTracker(new Chain<Searcher>(
                new UselessSearcher("first"), new UselessSearcher("second"),
                new UselessSearcher("third")));
        runSomeTraffic(t);

        ElapsedTime elapsed = new ElapsedTime();
        elapsed.add(t);
        t = new TimeTracker(new Chain<Searcher>(
                new UselessSearcher("first"), new UselessSearcher("second"),
                new UselessSearcher("third")));
        runSomeTraffic(t);
        elapsed.add(t);
        assertEquals(true, elapsed.hasDetailedData());
        assertEquals("Time use per searcher:"
                + " first(QueryProcessing(SEARCH: 2 ms), ResultProcessing(SEARCH: 4 ms, FILL: 4 ms)),\n"
                + "    second(QueryProcessing(SEARCH: 4 ms, FILL: 4 ms), ResultProcessing(SEARCH: 4 ms, FILL: 4 ms)),\n"
                + "    third(QueryProcessing(SEARCH: 4 ms, FILL: 4 ms), ResultProcessing()).",
                elapsed.detailedReport());
    }
Check sanity of TimeTracker and ElapsedTime.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/search/statistics/ElapsedTimeTestCase.java