data = fac.createOMElement("data", omNs);
Image expectedImage;
expectedImage = new ImageIO()
.loadImage(getResourceAsStream("org/apache/axis2/mtom/test.jpg"));
ImageDataSource dataSource = new ImageDataSource("test.jpg",
expectedImage);
expectedDH = new DataHandler(dataSource);
OMElement subData = fac.createOMElement("subData", omNs);
OMText textData = new OMTextImpl(expectedDH);
subData.addChild(textData);