*/
@Test
public void checkMultipleCircularDependenciesDetected() throws Exception {
Collection<ModelledResource> cmr = new ArrayList<ModelledResource>();
ExportedPackage testIsolated1 = createExportedPackage ("test.isolated1", "1.0.0",
new String[] {"test.isolated1","test.isolated2"}, new String[] {"test.shared1", "test.shared2"});
cmr.add (testIsolated1.getBundle());
ExportedPackage testIsolated2 = createExportedPackage ("test.isolated2", "1.0.0",
new String[] {"test.isolated1","test.isolated2"}, new String[] {"test.shared1", "test.shared2"});
cmr.add (testIsolated2.getBundle());
ExportedPackage testShared1 = createExportedPackage ("test.shared1", "1.0.0",
new String[] {"test.shared1", "test.shared2"}, new String[] {"test.isolated1","test.isolated2"});
cmr.add (testShared1.getBundle());
ExportedPackage testShared2 = createExportedPackage ("test.shared2", "1.0.0",
new String[] {"test.shared1", "test.shared2"}, new String[] {"test.isolated1","test.isolated2"});
cmr.add (testShared2.getBundle());
_resolver.addResult(cmr);
// The second time DeploymentGenerator calls the Resolver, it will provide just
// test.shared. The resolver will return test.shared _plus_ test.isolated.