next.assertStartProcessNotInvoked();
}
public void testStopProcess() throws Exception {
// create an instance of the class that is being tested
FlowControlProcess process =
(FlowControlProcess) createTestableProcess();
// set a next process
XMLProcessTestable next = createNextProcess();
process.setNextProcess(next);
XMLPipelineContext context = process.getPipelineContext();
SimpleFlowControlManager manager =
(SimpleFlowControlManager) context.getFlowControlManager();
Set flowControllers = (Set) PrivateAccessor.getField(manager,
"flowControllers");
// add the process to the set
flowControllers.add(process);
// need to ensure the process has been started
process.startProcess();
// invoke the method being tested
process.stopProcess();
// ensure the process registered itself with the flow control manager
assertFalse("FlowControlProcess was not unregistered with the flow " +
"control manager", flowControllers.contains(process));