void () { final SMTestProxy test = createTestProxy("some_test", myTestsRootNode); myResultsViewer.onTestStarted(test); assertEquals(1, myResultsViewer.getStartedTestCount()); myResultsViewer.onTestFinished(test); assertEquals(1, myResultsViewer.getFinishedTestCount()); }