/** * Makes sure non-serializable exceptions are gracefully handled. * * HUDSON-1041. */ public void test1() throws Throwable { try { channel.call(new Failure()); } catch (ProxyException p) { // verify that we got the right kind of exception assertTrue(p.getMessage().contains("NoneSerializableException")); assertTrue(p.getMessage().contains("message1")); ProxyException nested = p.getCause(); assertTrue(nested.getMessage().contains("SocketException")); assertTrue(nested.getMessage().contains("message2")); assertNull(nested.getCause()); } }