echo = service.getPort(Echo.class, new MTOMFeature());
else
echo = service.getPort(Echo.class);
byte[] expectedBytes = loadImageAsBytes();
byte[] echoBytes = echo.echoBytes(mtomSupport, expectedBytes);
Assert.assertEquals(expectedBytes.length, echoBytes.length);
for (int i=0;i<expectedBytes.length;i++) {
Assert.assertEquals("" + i, expectedBytes[i], echoBytes[i]);
}
}