Buggy code:
public class GraphTest { IGraph < Node , Edge < Node > > graph ; @ Before public void before ( ) throws Exception { } @ After public void after ( ) throws Exception { } @ Test public void testGetLabel ( ) throws Exception { } @ Test public void testAddNode ( ) throws Exception { } @ Test public void testAddNodes ( ) throws Exception { } @ Test public void testAddEdgeEdge ( ) throws Exception { } @ Test public void testAddEdgeForSourceTarget ( ) throws Exception { } @ Test public void testGetEdge ( ) throws Exception { } @ Test public void testGetAllNodes ( ) throws Exception { } @ Test public void testGetAllEdges ( ) throws Exception { } @ Test public void testGetAllSubGraphs ( ) throws Exception { } @ Test public void testGetAttributes ( ) throws Exception { } @ Test public void testSetAttributes ( ) throws Exception { } @ Test public void testContainsNode ( ) throws Exception { } @ Test public void testContainsNodeNodeLabel ( ) throws Exception { } @ Test public void testContainsEdgeEdge ( ) throws Exception { } @ Test public void testContainsEdgeForNodeSourceLabelNodeTargetLabel ( ) throws Exception { } @ Test public void testContainsEdgeForSourceTarget ( ) throws Exception { } @ Test public void testRemoveNode ( ) throws Exception { } @ Test public void testRemoveEdgeEdge ( ) throws Exception { } @ Test public void testRemoveEdgeForSourceTarget ( ) throws Exception { } @ Test public void testRemoveAllEdges ( ) throws Exception { } @ Test public void testRemoveAllNodes ( ) throws Exception { } @ Test public void testGetDot ( ) throws Exception { graph . removeAllNodes ( ) ; Attributes attrsNodes = new Attributes ( ) ; Attribute attrNodeColor = new Attribute ( "color" , Colors . BLACK ) ; Attribute attrNodeShape = new Attribute ( "shape" , Shapes . OCTAGON ) ; attrsNodes . addAttribute ( "color" , attrNodeColor ) ; attrsNodes . addAttribute ( "shape" , attrNodeShape ) ; Node node0 = new Node ( "a0" , attrsNodes ) ; Node node1 = new Node ( "a1" ) ; Node node2 = new Node ( "a2" , attrsNodes ) ; Node node3 = new Node ( "a3" ) ; Attributes attrsEdges = new Attributes ( ) ; Attribute attrEdge = new Attribute ( "color" , Colors . GREEN ) ; attrsEdges . addAttribute ( "color" , attrEdge ) ; Edge < Node > edge = new Edge ( node2 , node3 , attrsEdges ) ; graph . addEdge ( node0 , node1 ) ; graph . addEdge ( node1 , node2 ) ; graph . addEdge ( edge ) ; <START_BUG> String expectedResult = "digraph<seq2seq4repair_space>{<seq2seq4repair_space>a0[<seq2seq4repair_space>color=\"black\";shape=\"octagon\";<seq2seq4repair_space>];" + ( "a1;a2[<seq2seq4repair_space>color=\"black\";shape=\"octagon\";<seq2seq4repair_space>];" + "a3;a0<seq2seq4repair_space>-><seq2seq4repair_space>a1;a1<seq2seq4repair_space>-><seq2seq4repair_space>a2;a2<seq2seq4repair_space>-><seq2seq4repair_space>a3[<seq2seq4repair_space>color=\"green\";<seq2seq4repair_space>];<seq2seq4repair_space>}" ) ; <END_BUG> assert_ ( ) . that ( graph . getDot ( ) ) . isNotEmpty ( ) ; assert_ ( ) . that ( graph . getDot ( ) ) . contains ( expectedResult ) ; assert_ ( ) . that ( graph . getDot ( ) ) . startsWith ( "digraph" ) ; assert_ ( ) . that ( graph . getDot ( ) ) . doesNotContain ( "b3" ) ; } @ Test public void testGetType ( ) throws Exception { } @ Test public void testEquals ( ) throws Exception { } }

Fix:
String expectedResult = "digraph<seq2seq4repair_space>graphTest<seq2seq4repair_space>{<seq2seq4repair_space>a0[<seq2seq4repair_space>color=\"black\";shape=\"octagon\";<seq2seq4repair_space>];" + ( "a1;a2[<seq2seq4repair_space>color=\"black\";shape=\"octagon\";<seq2seq4repair_space>];" + "a3;a0<seq2seq4repair_space>-><seq2seq4repair_space>a1;a1<seq2seq4repair_space>-><seq2seq4repair_space>a2;a2<seq2seq4repair_space>-><seq2seq4repair_space>a3[<seq2seq4repair_space>color=\"green\";<seq2seq4repair_space>];<seq2seq4repair_space>}" ) ;