ValidationOptions options = getValidationOptions();
options.setCheckLayout(true);
options.setCheckModuleSemantics(true);
options.setCheckReferences(true);
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);