@Test
    public void testSyncException1() {
        server.registerUserProcessor(new AsyncExceptionUserProcessor());
        RequestBody b1 = new RequestBody(1, "Hello world!");
        try {
            client.invokeSync(addr, b1, 3000);
            String errMsg = "Should throw InvokeServerException!";
            logger.error(errMsg);
            Assert.fail(errMsg);
        } catch (InvokeServerException e) {
            Assert.assertTrue(true);
        } catch (RemotingException e) {
            String errMsg = "RemotingException in testSyncException ";
            logger.error(errMsg);
            Assert.fail(errMsg);
        } catch (InterruptedException e) {
            String errMsg = "InterruptedException in testSyncException ";
            logger.error(errMsg);
            Assert.fail(errMsg);
        }
    }
exception test

@author xiaomin.cxm
@version $Id: ExceptionTest.java, v 0.1 Apr 6, 2016 9:41:53 PM xiaomin.cxm Exp $
src/test/java/com/alipay/remoting/rpc/exception/ExceptionTest.java