public static void testResponse(SOAPMessage message, String responseAction, String responseElement, int result, boolean mtom)
throws SOAPException, IOException {
message.writeTo(System.out);
SOAPHeader header = message.getSOAPHeader();
SOAPElement action = TestUtils.findElement(header, "Action");
Assert.assertNotNull(action);
Assert.assertEquals(responseAction, action.getValue());
SOAPBody body = message.getSOAPBody();
SOAPElement responseElem = TestUtils.findElement(body, responseElement);
Assert.assertNotNull(responseElem);
SOAPElement returnElem = TestUtils.findElement(responseElem, "return");
Assert.assertNotNull(returnElem);
Assert.assertEquals(String.valueOf(result), returnElem.getValue());
}