public void testCloningWithContinueParent() throws Exception {
Mediator clone = fac.createMediator(createOMElement("<clone continueParent=\"true\" " +
"xmlns=\"http://ws.apache.org/ns/synapse\"><target soapAction=\"urn:clone\" " +
"sequence=\"seqRef\"/><target to=\"http://test\"><sequence><sequence " +
"key=\"seqRef\"/></sequence></target></clone>"), new Properties());
assertTrue(clone.mediate(testCtx));
while(helperMediator.getMediatedContext(1) == null) {
Thread.sleep(100);
}
MessageContext mediatedCtx = helperMediator.getMediatedContext(0);
assertTrue(mediatedCtx.getEnvelope().getBody().getFirstElement() == null);