options.setFileType(FileType.PUPPET_ROOT);
BuildResult buildResult = vs.validate(chain, root, options, null, SubMonitor.convert(null));
AllModuleReferences exports = buildResult.getAllModuleReferences();
Iterable<Export> visibleExports = exports.getVisibleExports(new File("roles/X"));
Export exporteda = exports.findExportedClass("aclass", visibleExports);
assertNotNull("Should have found exported 'aclass'", exporteda);
Export exportedb = exports.findExportedClass("b::bclass", visibleExports);
assertNotNull("Should have found exported 'bclass'", exportedb);
Export exportedx = exports.findExportedClass("xclass", visibleExports);
assertNotNull("Should have found exported 'xclass'", exportedx);
Export exportedc = exports.findExportedClass("cclass", visibleExports);
assertNull("Should not have found exported 'cclass'", exportedc);
Iterable<String> paramsForA = exports.getParameterNames(exporteda, visibleExports);
assertTrue("Should contain 'aparam'", Iterables.contains(paramsForA, "aparam"));
assertEquals("Should have one parameter", 1, Iterables.size(paramsForA));