@Test
    public void testGetBizClassLoaderException1() {
        server.registerUserProcessor(new SimpleServerUserProcessor() {
            @Override
            public ClassLoader getBizClassLoader() {
                throw new RuntimeException("getBizClassLoader fail.");
            }
        });

        RequestBody req = new RequestBody(4, "hello world");
        Object result = null;
        try {
            result = client.invokeSync(addr, req, 3000);
            String errMsg = "Should throw InvokeServerException!";
            logger.error(errMsg);
            Assert.fail(errMsg);
        } catch (Exception e) {
            Assert.assertNull(result);
            Assert.assertEquals(InvokeServerException.class, e.getClass());
        }
    }
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