}
public void testGlobalDisengagement() throws AxisFault {
AxisModule module = config.getModule("testModule");
assertNotNull(module);
Phase phase;
Phase userPhase;
ArrayList globalinflow = config.getInFlowPhases();
assertNotNull(globalinflow);
phase = (Phase) globalinflow.get(3);
assertNotNull(phase);
assertEquals(phase.getHandlerCount(), 0);
AxisService service = config.getService(serviceName);
assertNotNull(service);
AxisOperation operation = service.getOperation(opName);
assertNotNull(operation);
userPhase = (Phase) operation.getRemainingPhasesInFlow().get(1);
assertNotNull(userPhase);
assertEquals(0, userPhase.getHandlerCount());
config.engageModule(module.getName());
assertEquals(2, phase.getHandlerCount());
assertEquals(1, userPhase.getHandlerCount());
config.disengageModule(module);
assertEquals(0, phase.getHandlerCount());
assertEquals(0, userPhase.getHandlerCount());
}