echo = service.getPort(Echo.class, new MTOMFeature());
else
echo = service.getPort(Echo.class);
BufferedImage expectedImage = loadImage();
Image echoImage = echo.echoImage(mtomSupport, expectedImage);
byte[] actualImageBytes = convertImagetoBytes(echoImage);
byte[] expectedImageBytes = convertImagetoBytes(reserializeImage(expectedImage));
Assert.assertEquals(expectedImageBytes.length, actualImageBytes.length);
for (int i=0; i<expectedImageBytes.length; i++) {
Assert.assertEquals("" + i, expectedImageBytes[i], actualImageBytes[i]);