@Test
    public void testProcessorReturnNull() {
        server.registerUserProcessor(new NullUserProcessor());
        RequestBody req = new RequestBody(4, "hello world");
        try {
            Object obj = client.invokeSync(addr, req, 3000);
            Assert.assertNull(obj);
        } catch (RemotingException e) {
            String errMsg = "RemotingException caught in testProcessorReturnNull!";
            logger.error(errMsg, e);
            Assert.fail(errMsg);
        } catch (InterruptedException e) {
            String errMsg = "InterruptedException caught in testProcessorReturnNull!";
            logger.error(errMsg, e);
            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