public void testDump() throws Exception {
GraphDatabaseService db = new TestGraphDatabaseFactory().newImpermanentDatabase();
createData(db);
CsvFormat format = new CsvFormat(db);
StringWriter writer = new StringWriter();
format.dump(new DatabaseSubGraph(db), writer,new TestReporter(), config());
String output = writer.toString();
System.out.println("output = " + output);
assertEquals("id:id,labels:label,foo,age:int\n" +
"0,,bar,\n" +
"1,:User,,28\n" +