@Test
    public void testParseExcludeRouter() throws InvocationTargetException, IllegalAccessException, NoSuchMethodException {
        String methodName = "parseExcludeRouter";

        List<Router> routers = new CopyOnWriteArrayList<>();
        routers.add(new TestChainRouter1());
        routers.add(new TestChainRouter2());
        routers.add(new TestChainRouter3());
        routers.add(new TestChainRouter4());
        routers.add(new ExcludeRouter("-testChainRouter5"));

        Method parseExcludeRouter = RouterChain.class.getDeclaredMethod(methodName, List.class);
        parseExcludeRouter.setAccessible(true);
        Object invokeResult = parseExcludeRouter.invoke(Router.class, routers);
        Set<String> result = new HashSet<>();
        result.add(invokeResult.toString());

        Assert.assertEquals(1, result.size());
        Assert.assertNotNull(invokeResult);
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/client/RouterChainTest.java