}
public void testChangeDependencyWrongOrder() throws Throwable
{
TestDelegate delegate2 = getDelegate2();
ControllerContext context2 = assertInstall(delegate2, ControllerState.NOT_INSTALLED);
assertEquals(-1, delegate2.describeInstallOrder);
assertEquals(-1, delegate2.instantiateInstallOrder);
assertEquals(-1, delegate2.configureInstallOrder);
assertEquals(-1, delegate2.createInstallOrder);
assertEquals(-1, delegate2.startInstallOrder);
assertEquals(-1, delegate2.installInstallOrder);
assertEquals(-1, delegate2.installUninstallOrder);
assertEquals(-1, delegate2.startUninstallOrder);
assertEquals(-1, delegate2.createUninstallOrder);
assertEquals(-1, delegate2.configureUninstallOrder);
assertEquals(-1, delegate2.instantiateUninstallOrder);
assertEquals(-1, delegate2.describeUninstallOrder);
assertChange(context2, ControllerState.INSTALLED, ControllerState.CONFIGURED);
assertEquals(1, delegate2.describeInstallOrder);
assertEquals(2, delegate2.instantiateInstallOrder);
assertEquals(3, delegate2.configureInstallOrder);
assertEquals(-1, delegate2.createInstallOrder);
assertEquals(-1, delegate2.startInstallOrder);
assertEquals(-1, delegate2.installInstallOrder);
assertEquals(-1, delegate2.installUninstallOrder);
assertEquals(-1, delegate2.startUninstallOrder);
assertEquals(-1, delegate2.createUninstallOrder);
assertEquals(-1, delegate2.configureUninstallOrder);
assertEquals(-1, delegate2.instantiateUninstallOrder);
assertEquals(-1, delegate2.describeUninstallOrder);
TestDelegate delegate1 = getDelegate1();
ControllerContext context1 = assertInstall(delegate1, ControllerState.NOT_INSTALLED);
assertEquals(-1, delegate1.describeInstallOrder);
assertEquals(-1, delegate1.instantiateInstallOrder);
assertEquals(-1, delegate1.configureInstallOrder);
assertEquals(-1, delegate1.createInstallOrder);
assertEquals(-1, delegate1.startInstallOrder);