void () { final MyRenderer renderer1 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer()); mySMRootTestProxy.setTestsReporterAttached(); mySMRootTestProxy.addChild(mySimpleTest); mySMRootTestProxy.setStarted(); mySimpleTest.setStarted(); mySimpleTest.setTestFailed("", "", false); mySimpleTest.addError("msg", "stacktrace", true); mySimpleTest.setFinished(); mySMRootTestProxy.setFinished(); TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, renderer1); assertEquals(SMPoolOfTestIcons.FAILED_E_ICON, renderer1.getIcon()); final MyRenderer renderer2 = new MyRenderer(false, myFragContainer = new UITestUtil.FragmentsContainer()); TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, renderer2); mySMRootTestProxy.setFinished(); assertEquals(SMPoolOfTestIcons.FAILED_E_ICON, renderer1.getIcon()); }