@@ -0,0 +1,1529 @@
+package com.github.ferstl.depgraph.graph.gml;%0A%0Aimport com.github.ferstl.depgraph.graph.Edge;%0Aimport com.github.ferstl.depgraph.graph.Node;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static java.util.Arrays.asList;%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class GmlGraphFormatterTest %7B%0A%0A  private GmlGraphFormatter formatter;%0A%0A  @Before%0A  public void before() %7B%0A    this.formatter = new GmlGraphFormatter();%0A  %7D%0A%0A  @Test%0A  public void format() %7B%0A    // arrange%0A    Node%3C?%3E node1 = new Node%3C%3E(%22id1%22, %22name1%22, new Object());%0A    Node%3C?%3E node2 = new Node%3C%3E(%22id2%22, %22%22, new Object());%0A    Node%3C?%3E node3 = new Node%3C%3E(%22id3%22, %22name3%22, new Object());%0A%0A    Edge edge1 = new Edge(%22id1%22, %22id2%22, %22edge1%22);%0A    Edge edge2 = new Edge(%22id1%22, %22id2%22, %22%22);%0A%0A    // act%0A    String result = this.formatter.format(%22graphName%22, asList(node1, node2, node3), asList(edge1, edge2));%0A%0A    // assert%0A    String expected = %22graph %5B%5Cn%22%0A        + %22node %5B%5Cn%22%0A        + %22id %5C%22id1%5C%22%5Cn%22%0A        + %22label %5C%22name1%5C%22%5Cn%22%0A        + %22%5D%5Cn%22%0A        + %22%5Cn%22%0A        + %22node %5B%5Cn%22%0A        + %22id %5C%22id2%5C%22%5Cn%22%0A        + %22%5D%5Cn%22%0A        + %22%5Cn%22%0A        + %22node %5B%5Cn%22%0A        + %22id %5C%22id3%5C%22%5Cn%22%0A        + %22label %5C%22name3%5C%22%5Cn%22%0A        + %22%5D%5Cn%22%0A        + %22%5Cn%22%0A        + %22edge %5B%5Cn%22%0A        + %22source %5C%22id1%5C%22%5Cn%22%0A        + %22target %5C%22id2%5C%22%5Cn%22%0A        + %22label %5C%22edge1%5C%22%5Cn%22%0A        + %22%5D%5Cn%22%0A        + %22%5Cn%22%0A        + %22edge %5B%5Cn%22%0A        + %22source %5C%22id1%5C%22%5Cn%22%0A        + %22target %5C%22id2%5C%22%5Cn%22%0A        + %22%5D%5Cn%22%0A        + %22%5Cn%22%0A        + %22%5D%22;%0A%0A    assertEquals(expected, result);%0A  %7D%0A%7D%0A

Add test for GmlGraphFormatter