@Test
    public void testInterestNullException() {
        UserProcessor userProcessor = new SyncUserProcessor() {
            @Override
            public Object handleRequest(BizContext bizCtx, Object request) throws Exception {
                return request;
            }

            @Override
            public String interest() {
                return null;
            }
        };

        try {
            UserProcessorRegisterHelper.registerUserProcessor(userProcessor, userProcessors);
        } catch (RuntimeException e) {
        }

        Assert.assertEquals(0, userProcessors.size());
    }
@antuor muyun.cyt (muyun.cyt@antfin.com)  2018/7/5   4:51 PM
src/test/java/com/alipay/remoting/rpc/userprocessor/UserProcessorRegisterHelperTest.java