expectedEvents[4] = new BundleEvent(BundleEvent.STOPPED, chainTestD); expectedEvents[5] = new BundleEvent(BundleEvent.STOPPED, chainTestC); expectedEvents[6] = new BundleEvent(BundleEvent.STOPPED, chainTestB); expectedEvents[7] = new BundleEvent(BundleEvent.STOPPED, chainTestA);
expectedEvents[4] = new BundleEvent(BundleEvent.STOPPED, chainTestA); expectedEvents[5] = new BundleEvent(BundleEvent.STOPPED, chainTestB); expectedEvents[6] = new BundleEvent(BundleEvent.STOPPED, chainTestC); expectedEvents[7] = new BundleEvent(BundleEvent.STOPPED, chainTestD);
	public void testMultiChainDepedencies() throws Exception {		Bundle chainTest = installer.installBundle("chain.test");		Bundle chainTestA = installer.installBundle("chain.test.a");		Bundle chainTestB = installer.installBundle("chain.test.b");		Bundle chainTestC = installer.installBundle("chain.test.c");		Bundle chainTestD = installer.installBundle("chain.test.d");		chainTest.loadClass("chain.test.TestMultiChain").newInstance();		Object[] expectedEvents = new Object[8];		expectedEvents[0] = new BundleEvent(BundleEvent.STARTED, chainTestD);		expectedEvents[1] = new BundleEvent(BundleEvent.STARTED, chainTestB);		expectedEvents[2] = new BundleEvent(BundleEvent.STARTED, chainTestC);		expectedEvents[3] = new BundleEvent(BundleEvent.STARTED, chainTestA);		expectedEvents[4] = new BundleEvent(BundleEvent.STOPPED, chainTestD);		expectedEvents[5] = new BundleEvent(BundleEvent.STOPPED, chainTestC);		expectedEvents[6] = new BundleEvent(BundleEvent.STOPPED, chainTestB);		expectedEvents[7] = new BundleEvent(BundleEvent.STOPPED, chainTestA);		installer.refreshPackages(new Bundle[] {chainTestC, chainTestD});		Object[] actualEvents = simpleResults.getResults(8);		compareResults(expectedEvents, actualEvents);	}