### Question:
SummaryTextFormatter implements EventListener { private void process(Statistics stats) { reset(); createLines(stats); this.finishReport(); } SummaryTextFormatter(AppendableBuilder builder); @Override void setEventPublisher(EventPublisher publisher);  }### Answer:
@Test public void testProcess() { SummaryTextFormatter stf = new SummaryTextFormatter(new AppendableBuilder("file: PluginFactory pf = new PluginFactory(); PerfRuntimeOptions options = new PerfRuntimeOptions(); Plugins plugins = new Plugins(this.getClass().getClassLoader(), pf, options); plugins.addPlugin(stf); plugins.setEventBusOnPlugins(eventBus); eventBus.send(new StatisticsFinished(eventBus.getTime(),eventBus.getTimeMillis(),new Statistics())); assertTrue(deleteFile("C:/test/summarytext.txt")); }