protected void runTest() throws Throwable {
InputStream in = AbstractTestCase.getTestResource(TestConstants.MTOM_MESSAGE.getName());
Attachments attachments = new Attachments(in, TestConstants.MTOM_MESSAGE.getContentType());
SOAPEnvelope envelope = OMXMLBuilderFactory.createSOAPModelBuilder(metaFactory, attachments).getSOAPEnvelope();
envelope.buildWithAttachments();
in.close();
Iterator it = envelope.getBody().getFirstElement().getChildElements();
OMElement image1 = (OMElement)it.next();
OMElement image2 = (OMElement)it.next();