JMSMTOMPortType mtom = service.getPort(portName, JMSMTOMPortType.class);
URL fileURL = this.getClass().getResource("/org/apache/cxf/systest/jms/JMSClientServerTest.class");
DataHandler handler1 = new DataHandler(fileURL);
int size = handler1.getInputStream().available();
DataHandler ret = mtom.testOutMtom();
byte bytes[] = IOUtils.readBytesFromStream(ret.getInputStream());
Assert.assertEquals("The response file is not same with the original file.", size, bytes.length);
((Closeable)mtom).close();
}