@Test
    public void testInterestRepeatException() {
        UserProcessor userProcessor = new SimpleServerUserProcessor();
        UserProcessor repeatedUserProcessor = new SimpleServerUserProcessor();
        try {
            UserProcessorRegisterHelper.registerUserProcessor(userProcessor, userProcessors);
            UserProcessorRegisterHelper
                .registerUserProcessor(repeatedUserProcessor, userProcessors);
        } catch (RuntimeException e) {
        }

        Assert.assertEquals(1, 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