soapMessage = TestUtil.createEmptySoapMessage(Soap12.getInstance(), chain);
ByteArrayDataSource bads = new ByteArrayDataSource(this.getClass()
.getResourceAsStream("test-soap-header.xml"), "Application/xop+xml");
String cid = AttachmentUtil.createContentID("http://cxf.apache.org");
soapMessage.setContent(Attachment.class, new AttachmentImpl(cid, new DataHandler(bads)));
soapMessage.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
.createXMLStreamReader(bads.getInputStream()));
}