ErrorLifecycleCallback error = (ErrorLifecycleCallback)getBean("ErrorAdvice");
assertTrue(error.isInstalledContext());
assertTrue(error.isUninstalledContext());
//This comes after the error advice in the chain, and so should not have had install or uninstall called
InstallUninstallLifecycleCallback startNotInvoked = (InstallUninstallLifecycleCallback)getBean("InstallAdviceNotInvoked");
assertFalse(startNotInvoked.isInstalledContext());
assertFalse(startNotInvoked.isUninstalledContext());
//Lifecycle callbacks from previous states should have had uninstall called
getAssertUninstalledLifecycleCallback("DescribeAdvice1");
getAssertUninstalledLifecycleCallback("DescribeAdvice2");
getAssertUninstalledLifecycleCallback("InstantiateAdvice1");