SMTestProxy (final String testName) { myEventsProcessor.onTestStarted(new TestStartedEvent(testName, null)); final SMTestProxy proxy = myEventsProcessor.getProxyByFullTestName(myEventsProcessor.getFullTestName(testName)); assertNotNull(proxy); proxy.setPrinter(myMockResettablePrinter); return proxy; }