public static TestMessageContext getTestContextForXSLTMediator(String bodyText, Map props) throws Exception {
// create a test synapse context
TestMessageContext synCtx = new TestMessageContext();
SynapseConfiguration testConfig = new SynapseConfiguration();
testConfig.setRegistry(new SimpleURLRegistry());
SynapseEnvironment testEnv = new Axis2SynapseEnvironment(new ConfigurationContext(new AxisConfiguration()), testConfig);
if (props != null) {
Iterator iter = props.keySet().iterator();
while (iter.hasNext()) {