Mediator pcm = MediatorFactoryFinder.getInstance().getMediator(createOMElement(
"<pojoCommand name='org.apache.synapse.mediators.ext.POJOCommandTestImplementedMediator' " +
"xmlns='http://ws.apache.org/ns/synapse'><property name=\"testProp\" " +
"expression=\"fn:concat('XPATH ', 'FUNC')\" action=\"ReadMessage\"/></pojoCommand>"), new Properties());
POJOCommandTestHelper.reset();
pcm.mediate(new TestMessageContext());
assertEquals("XPATH FUNC", POJOCommandTestHelper.getInstance().getChangedProperty());
assertTrue(POJOCommandTestHelper.getInstance().isExecuted());
}
public void testPojoWithStaticPropertiesCommandImpl() throws Exception {