StreamedAttachments atts = new StreamedAttachments(new FileInputStream(getTestFile("src/test/org/codehaus/xfire/attachments/mimedata")),
"multipart/related; type=\"application/xop+xml\"; start=\"<soap.xml@xfire.codehaus.org>\"; start-info=\"null; charset=utf-8\"; boundary=\"----=_Part_4_701508.1145579811786\"");
Attachment soapMessage = atts.getSoapMessage();
assertNotNull(soapMessage);
assertEquals("text/xml", soapMessage.getHeader("Content-Type"));
DataHandler handler = soapMessage.getDataHandler();
assertNotNull(handler);
assertNotNull(handler.getInputStream());
Iterator parts = atts.getParts();
assertTrue(parts.hasNext());
Attachment a = (Attachment) parts.next();