importer.getImports().add(import_);
Contribution imported = contributionFactory.createContribution();
imported.setURI("imported");
workspace.getContributions().add(imported);
NamespaceExport export = importExportFactory.createNamespaceExport();
export.setNamespace("http://foo");
imported.getExports().add(export);
import_ = importExportFactory.createNamespaceImport();
import_.setNamespace("http://bar");
imported.getImports().add(import_);
Contribution imported2 = contributionFactory.createContribution();
imported2.setURI("imported2");
workspace.getContributions().add(imported2);
export = importExportFactory.createNamespaceExport();
export.setNamespace("http://bar");
imported2.getExports().add(export);
Contribution another = contributionFactory.createContribution();
another.setURI("another");
workspace.getContributions().add(another);
export = importExportFactory.createNamespaceExport();
export.setNamespace("http://another");
another.getExports().add(export);
ContributionDependencyBuilderImpl analyzer = new ContributionDependencyBuilderImpl(null);
List<Contribution> dependencies = analyzer.buildContributionDependencies(workspace, importer);
assertTrue(dependencies.size() == 3);