* Test stopProcess() with a setup that uses simple types for
* both request and response.
* @throws Exception If something goes wrong.
*/
public void testStopProcessAmazon() throws Exception {
RequestOperationProcess process =
(RequestOperationProcess) createTestableProcess();
XMLPipelineContext context = process.getPipelineContext();
SAXHandler saxHandler = new SAXHandler();
XMLProcess next = XMLHelpers.createSAXHandlerProcess(saxHandler);
process.setNextProcess(next);
// Setup the operation and message.
WSDLOperation operation = new WSDLOperation();
Message message = new Message();
WSDriverTestHelpers.setupAmazonOperationMessage(operation,
message, "Douglas Adams");
context.setProperty(Operation.class, operation, false);
context.setProperty(Message.class, message, false);
process.stopProcess();
Document document = saxHandler.getDocument();
String documentString = new XMLOutputter(" ", true).
outputString(document);