public void testSoapMessageWithAttachmentResourceVariablesSupportTest() throws Exception {
ReceiveSoapMessageAction soapMessageAction = new ReceiveSoapMessageAction();
soapMessageAction.setEndpoint(endpoint);
soapMessageAction.setAttachmentValidator(attachmentValidator);
soapMessageAction.setValidator(new DomXmlMessageValidator());
PayloadTemplateMessageBuilder controlMessageBuilder = new PayloadTemplateMessageBuilder();
XmlMessageValidationContext validationContext = new XmlMessageValidationContext();
validationContext.setMessageBuilder(controlMessageBuilder);
controlMessageBuilder.setPayloadData("<TestRequest><Message>Hello World!</Message></TestRequest>");