options.setCheckModuleSemantics(true);
options.setCheckReferences(true);
options.setFileType(FileType.PUPPET_ROOT);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
File[] modules = new File[] { new File(root, "modules/B/Modulefile") };
BuildResult buildResult = vs.validate(chain, root, options, null, SubMonitor.convert(null));
// dumpExports(buildResult.getExportsForAll());
getDependencyGraphProducer().produceGraph(
null, "Module dependencies for graphTestData", modules, stream, buildResult, chain);
String output = stream.toString();