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));
assertThat(tasks[0].getTaskName(), equalTo(name1));
assertThat(tasks[1].getTaskName(), equalTo(name2));
sw.toString();
}