synCtx.setProperty("test", message);
assertEquals(xpath.evaluate(synCtx), message);
}
public void testAxis2ContextProperties() throws Exception {
Axis2MessageContext synCtx = TestUtils.getAxis2MessageContext("<test/>", null);
synCtx.getAxis2MessageContext().setProperty("test", message);
synCtx.getAxis2MessageContext().setProperty("test2", "1234");
assertEquals(message, new SynapseXPath("$axis2:test").evaluate(synCtx));
assertEquals(1234, new SynapseXPath("$axis2:test2").numberValueOf(synCtx).intValue());
assertTrue(new SynapseXPath("$axis2:test2 = 1234").booleanValueOf(synCtx));
}