* @throws Exception if an error occures
*/
public void testEndElementInFlowControlMode() throws Exception {
// create a FlowControlProcess that is in flow control mode and
// has a next process set
XMLProcess testable = createTestableProcess();
prepareProcessForFlowControlTest(testable);
// invoke the method being tested
testable.endElement(NAMESPACE_URI, LOCAL_NAME, Q_NAME);
// endElement event should be forwarded
XMLProcessTestable next =
(XMLProcessTestable) testable.getNextProcess();
next.assertEndElementInvoked(NAMESPACE_URI, LOCAL_NAME, Q_NAME);
}