try {
dispImpl.invoke(soapReqMsg);
fail("Expecting a instance of ProtocolException");
} catch (ProtocolException pe) {
assertTrue("Should be instance of SOAPFaultException", pe instanceof SOAPFaultException);
SOAPFaultException sfe = (SOAPFaultException)pe;
assertNotNull("Should have a details obj", sfe.getFault());
assertEquals(
new QName("http://schemas.xmlsoap.org/soap/envelope/", "Server"),
sfe.getFault().getFaultCodeAsQName());
assertEquals("Test Exception", sfe.getFault().getFaultString());
}
is.close();
}