### Question:
TaurusFormatter implements EventListener, EventWriter { private void process(Statistics result) { reset(); addLines(result); this.finishReport(); } TaurusFormatter(AppendableBuilder builder); @Override void setEventPublisher(EventPublisher publisher); @Override void setEventBus(EventBus eventBus);  }### Answer:
@Test public void testProcess() { TaurusFormatter stf = new TaurusFormatter(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/taurusout.csv")); }