getAssertInstalledLifecycleCallback("InstallAdvice1");
getAssertInstalledLifecycleCallback("InstallAdvice2");
//This is the bean causing the error during its install phase, make sure that both install
//AND uninstall have been called since install might have had partial success before the error
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());