ctx.put(ObjectMessageContext.MESSAGE_INPUT, true);
ctx.put(MessageContext.MESSAGE_OUTBOUND_PROPERTY, false);
final String testResponse = "test replaced response";
GreetMeResponse wrapper = new GreetMeResponse();
wrapper.setResponseType(testResponse);
lm.setPayload(wrapper, jaxbCtx);
GreetMeResponse payload = (GreetMeResponse)lm.getPayload(jaxbCtx);
assertEquals(wrapper.getResponseType(), payload.getResponseType());
Object ret = ctx.getReturn();
assertNotNull(ret);
assertTrue(ret instanceof String);