inOutRuntimeEx.sendInOut(new ConsumerException("throw me a remote exception please!!"));
// if we got here, then our negative test failed
Assert.fail("Exception thrown by bean but not turned into fault!");
} catch (InvocationFaultException infEx) {
System.out.println(infEx.getFaultMessage().getContent());
Message faultMsg = infEx.getFaultMessage();
Assert.assertTrue(faultMsg.getContent() instanceof HandlerException);
Assert.assertEquals("throw me a remote exception please!!", faultMsg.getContent(HandlerException.class).getCause().getCause().getMessage());
}
}