public void testOne() throws IOException {
Graph g = new AdjacencyListGraph("g");
ThreadProxyPipe tpp = new ThreadProxyPipe();
tpp.init(g);
FileSinkDGS dgs1 = new FileSinkDGS();
FileSinkDGS dgs2 = new FileSinkDGS();
StringWriter w1 = new StringWriter();
StringWriter w2 = new StringWriter();
Actor a = new Actor(tpp);
Thread t = new Thread(a);
g.addSink(dgs1);
tpp.addSink(dgs2);
dgs1.begin(w1);
dgs2.begin(w2);
t.start();
generateRandom(g, 1000);
try {