XMLPipeline pipeline = dynamicProcess.getPipeline();
// add the process to the head of the pipeline
pipeline.addHeadProcess(adapterProcess);
// create an expanded name
ExpandedName eName = new ImmutableExpandedName("testNamespace",
"testLocalName");
try {
// call end element on the rule
rule.endElement(dynamicProcess, eName, new MockAdapterProcess());