void () { mySMRootTestProxy.setTestsReporterAttached(); mySMRootTestProxy.addChild(mySimpleTest); mySMRootTestProxy.setStarted(); mySimpleTest.setStarted(); mySimpleTest.setFinished(); mySMRootTestProxy.setFinished(); TestsPresentationUtil.formatRootNodeWithChildren(mySMRootTestProxy, myRenderer); assertEquals(PoolOfTestIcons.PASSED_ICON, myRenderer.getIcon()); assertOneElement(myRenderer.getFragmentsContainer().getFragments()); assertEquals("Test Results", myRenderer.getFragmentsContainer().getTextAt(0)); assertEquals(SimpleTextAttributes.REGULAR_ATTRIBUTES, myRenderer.getFragmentsContainer().getAttribsAt(0)); }