assertEquals("["+node.getId()+"|name root;],", res);
}
@Test
public void testNamedGraphToYuml() throws Exception {
node.setProperty("name", "root");
final Node n1 = gdb.createNode();
n1.setProperty("name", "Peter");
node.createRelationshipTo(n1, DynamicRelationshipType.withName("PERSON"));
final Node n2 = gdb.createNode();
n2.setProperty("name", "Andreas");
node.createRelationshipTo(n2, DynamicRelationshipType.withName("PERSON"));
final Node n3 = gdb.createNode();
n3.setProperty("name","Michael");
node.createRelationshipTo(n3, DynamicRelationshipType.withName("PERSON"));
n1.createRelationshipTo(n2, DynamicRelationshipType.withName("FRIEND"));
n3.createRelationshipTo(n1, DynamicRelationshipType.withName("FRIEND"));
final String res = new YumlExport().toYuml(SubGraph.from(gdb), "name");
System.out.println("res = " + res);
assertEquals(true, res.contains("[Peter]FRIEND->[Andreas],"));
assertEquals(true,res.contains("[root],[Peter],[Andreas],[Michael],"));
}