Throwable t = invocationHandler.t;
assertTrue(t instanceof HandleCallbackException);
log.info("t.getCause:", t.getCause());
if (t.getCause() instanceof MarshalException)
{
MarshalException e = (MarshalException) t.getCause();
assertNotNull(e.getMessage());
assertTrue(e.getMessage().startsWith("Failed to communicate. Problem during marshalling/unmarshalling"));
assertTrue(e.getCause() instanceof IOException);
IOException ioe = (IOException) e.getCause();
assertEquals("closed", ioe.getMessage());
}
else
{
assertTrue(t.getCause() instanceof CannotConnectException);