byte[] bytesIn = XOPTestSupport.getBytesFromFile(imgFile);
// reusing the stub means cleaning the previous state
((Stub)getPort())._setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.TRUE);
PingMsgResponse value = getPort().ping(new PingMsg("1|0", bytesIn));
assertNotNull("Return value was null",value);
byte[] bytesOut = value.getXopContent();
assertNotNull("Return xopContent was null", bytesOut);
assertEquals("Content length doesn't match", bytesIn.length, bytesOut.length);
}