ScriptMessageContext smc = new ScriptMessageContext(TestUtils.getTestContext("<foo/>"), new DefaultOMElementConvertor());
assertEquals("<foo />", smc.getPayloadXML());
}
public void testSetPayloadXML() throws Exception {
ScriptMessageContext smc = new ScriptMessageContext(TestUtils.getTestContext("<foo/>"), new DefaultOMElementConvertor());
smc.setPayloadXML("<petra/>");
OMElement payload = smc.getEnvelope().getBody().getFirstElement();
assertEquals("<petra />", payload.toString());
}