LegendCreator { public void export(String filenameBase) { new DotExporter(this.graph, filenameBase, this.architecture, new ArrayList<>(), true).exportGraph(); new GraphMLExporter(this.graph, filenameBase, this.architecture, new ArrayList<>(), true).exportGraph(); } LegendCreator(); void export(String filenameBase);  }
@Test public void export() { String filenameBase = "build/test-output/legend"; new LegendCreator().export(filenameBase); String filename = filenameBase + ".dot"; assertThat(FileSystemUtil.checkFileOrResourceExists(filename)).isTrue(); }