bean.someMethod();
assertTrue(SimpleInterceptor1.invoked);
assertTrue(SimpleInterceptor2.invoked);
ControllerContext ctx = getControllerContext("Intercepted");
Controller controller = ctx.getController();
//Move the bean intercepted to pre-install state
controller.change(ctx, ControllerState.PRE_INSTALL);
//Undeploy the second aspect
undeploy("UndeployAspectDependencyTestCaseNotAutomatic1.xml");
//Move the bean back to the installed state
controller.change(ctx, ControllerState.INSTALLED);
bean = (SimpleBeanImpl)getBean("Intercepted");
SimpleInterceptor1.invoked = false;
SimpleInterceptor2.invoked = false;
bean.someMethod();