@Test
public void testSimpleMem() throws IOException, InterruptedException {
EventSource src = new NoNlASCIISynthSource(25, 100, 1);
EventSink snk = new ConsoleEventSink();
EventSink snk2 = new BenchmarkReportDecorator<EventSink>("report", snk);
EventSink snk3 = new BenchmarkInjectDecorator<EventSink>(snk2);
EventSink snk4 = new InMemoryDecorator<EventSink>(snk3);
DirectDriver connect = new DirectDriver(src, snk4);
src.open();
snk4.open();
connect.start();
connect.join(Long.MAX_VALUE);
src.close();
snk4.close();
snk2.getMetrics().toText(new OutputStreamWriter(System.err));
}