void () { myResultsViewer.onCustomProgressTestsCategory("foo", 4); final SMTestProxy test1 = createTestProxy("some_test1", myTestsRootNode); myResultsViewer.onTestStarted(test1); myResultsViewer.onCustomProgressTestStarted(); myResultsViewer.onTestFailed(test1); assertEquals(0, myResultsViewer.getFailedTestCount()); myResultsViewer.onCustomProgressTestFailed(); assertEquals(1, myResultsViewer.getFailedTestCount()); assertEquals(ColorProgressBar.RED, myResultsViewer.getTestsStatusColor()); }