public void testAnalyze() throws Exception {
Workspace workspace = workspaceFactory.createWorkspace();
Contribution importer = contributionFactory.createContribution();
importer.setURI("importer");
workspace.getContributions().add(importer);
NamespaceImport import_ = importExportFactory.createNamespaceImport();
import_.setNamespace("http://foo");
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);