File outputFolder = TestDataProvider.getTestOutputDir();
FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "missingResource.svg"));
FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "missingResource.dot"));
CatalogServices catalogServices = new CatalogServices();
catalogServices.produceDOTGraph("Sample catalog", catalogStream, dotStream, new NullProgressMonitor(), null);
catalogStream = new FileInputStream(catalogFile);
catalogServices.produceSVGGraph("Sample catalog", catalogStream, svgStream, new NullProgressMonitor(), null);
}
}