sw.stop();
//assertTrue("Unexpected timing " + sw.getTotalTime(), sw.getTotalTime() >= int1 + int2);
//assertTrue("Unexpected timing " + sw.getTotalTime(), sw.getTotalTime() <= int1 + int2 + fudgeFactor);
assertThat(sw.taskCount(), equalTo(2));
String pp = sw.prettyPrint();
assertThat(pp.indexOf(name1) != -1, equalTo(true));
assertThat(pp.indexOf(name2) != -1, equalTo(true));
StopWatch.TaskInfo[] tasks = sw.taskInfo();
assertThat(tasks.length, equalTo(2));