Assert.assertEquals(action.getName(), "send");
Assert.assertEquals(action.getEndpoint(), soapClient);
Assert.assertEquals(action.getMessageBuilder().getClass(), PayloadTemplateMessageBuilder.class);
PayloadTemplateMessageBuilder messageBuilder = (PayloadTemplateMessageBuilder) action.getMessageBuilder();
Assert.assertEquals(messageBuilder.getPayloadData(), "<TestRequest><Message>Hello World!</Message></TestRequest>");
Assert.assertEquals(messageBuilder.getMessageHeaders().size(), 0L);
Assert.assertEquals(action.getAttachments().size(), 1L);
Assert.assertNull(action.getAttachments().get(0).getContentResourcePath());
Assert.assertEquals(action.getAttachments().get(0).getContent(), testAttachment.getContent());
Assert.assertEquals(action.getAttachments().get(0).getContentId(), testAttachment.getContentId());