throw new UnsupportedOperationException();
}
};
// Create a message context with that request. Note that the message factory doesn't matter here:
// it is required but not used.
MessageContext messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
Object result = processor.resolveArgument(messageContext, rootElementParameter);
assertTrue("result not a MyRootElement", result instanceof MyRootElement);
MyRootElement rootElement = (MyRootElement) result;
assertEquals("invalid result", "Foo", rootElement.getString());