@@ -0,0 +1,1240 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage org.anarres.graphviz.builder;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport java.io.StringWriter;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A *%0A * @author shevek%0A */%0Apublic class GraphVizGraphTest implements GraphVizScope %7B%0A%0A    private static final Logger LOG = LoggerFactory.getLogger(GraphVizGraphTest.class);%0A%0A    @Test%0A    public void testWriter() throws Exception %7B%0A        GraphVizGraph graph = new GraphVizGraph();%0A        assertNotNull(graph.node(this, %22foo%22));%0A        assertSame(graph.node(this, %22foo%22), graph.node(this, %22foo%22));%0A        graph.node(this, %22foo%22).label(%22something%22);%0A        graph.node(this, %22bar%22).label(%22something%22);%0A        graph.edge(this, %22bar%22, %22foo%22);%0A        graph.edge(this, %22foo%22, %22bar%22).label(%22Some label%22);%0A%0A        graph.label(%22This is my graph%5Cntitle%22);%0A%0A        graph.cluster(this, %22foo%22).label(%22My cluster%22).add(this, %22foo%22);%0A%0A        %7B%0A            StringWriter writer = new StringWriter();%0A            graph.writeTo(writer);%0A            LOG.info(%22Graph is %22 + writer);%0A        %7D%0A%0A        %7B%0A            LOG.info(%22Graph is %22 + graph);%0A        %7D%0A    %7D%0A%7D%0A

Add simple test case.