private static final String JSON_OBJ =
"{\"soapenv:Envelope\":{\"soapenv:Body\":{\"m:someOtherElement\":{\"m0:CheckPriceRequest\":{\"xmlns:m0\":\"http://www.apache-synapse.org/test\",\"m0:Code\":\"String\"},\"xmlns:m\":\"http://someother\"}},\"xmlns:soapenv\":\"http://schemas.xmlsoap.org/soap/envelope/\",\"soapenv:Header\":{}}}";
private JsonMediator jsonMediator = null;
public void testJsonMediator() throws Exception{
jsonMediator = new JsonMediator();
jsonMediator.setDirection("XTJ");
// invoke transformation, with static enveope
MessageContext synCtx = TestUtils.createLightweightSynapseMessageContext(ENV);
jsonMediator.mediate(synCtx);