Mediator pcm = MediatorFactoryFinder.getInstance().getMediator(createOMElement(
"<pojoCommand name='org.apache.synapse.mediators.ext.POJOCommandTestImplementedMediator' " +
"xmlns='http://ws.apache.org/ns/synapse'><property name=\"testProp\" " +
"value=\"TestProperty\" expression=\"//testNode\"/></pojoCommand>"), new Properties());
POJOCommandTestHelper.reset();
MessageContext ctx = new TestMessageContext();
SOAPEnvelope envelope = OMAbstractFactory.getSOAP11Factory().getDefaultEnvelope();
envelope.getBody().addChild(createOMElement("<original><testNode/></original>"));
ctx.setEnvelope(envelope);
pcm.mediate(ctx);
assertEquals("TestProperty", POJOCommandTestHelper.getInstance().getChangedProperty());
assertEquals("<original>TestProperty</original>", ctx.getEnvelope().getBody().getFirstOMChild().toString());
assertTrue(POJOCommandTestHelper.getInstance().isExecuted());
}