fail("Expected WebServiceException thrown but found " + e.getClass());
}
// Try the call again to verify the same behavior
try {
TestBean response = proxy.process(2, request);
fail("Expected WebServiceException thrown");
} catch (WebServiceException wse) {
assertTrue(wse.getMessage().equals("WebServiceException thrown"));
} catch (Exception e) {
fail("Expected WebServiceException thrown but found " + e.getClass());