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