Throwable t = invocationHandler.t;
assertTrue(t instanceof HandleCallbackException);
log.info("t.getCause:", t.getCause());
if (t.getCause() instanceof InvocationFailureException)
{
InvocationFailureException e = (InvocationFailureException) t.getCause();
assertNotNull(e.getMessage());
assertTrue(e.getMessage().startsWith("Unable to perform invocation"));
assertTrue(e.getCause() instanceof IOException);
IOException ioe = (IOException) e.getCause();
assertEquals("closed", ioe.getMessage());
}
else
{
assertTrue(t.getCause() instanceof CannotConnectException);