mtomOutputFormat.setDoOptimize(true);
OMOutputFormat baseOutputFormat = new OMOutputFormat();
baseOutputFormat.setDoOptimize(false);
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace soap = fac.createOMNamespace(
"http://schemas.xmlsoap.org/soap/envelope/", "soap");
OMElement envelope = fac.createOMElement("Envelope", soap);
OMElement body = fac.createOMElement("Body", soap);
OMNamespace dataName = fac.createOMNamespace(
"http://www.example.org/stuff", "m");
OMElement data = fac.createOMElement("data", dataName);
DataSource dataSource = getTestResourceDataSource(imageInFileName);
expectedDH = new DataHandler(dataSource);