public Set<String> getMatchKeys() {
        return routerConfig.isUseRequestRouter() ? requestTags : RuleUtils.getMatchKeys();
    }
@Test
    public void testGetMatchKeys() {
        config.setUseRequestRouter(false);

        Match match = new Match();
        match.setHeaders(Collections.singletonMap("bar", Collections.singletonList(new MatchRule())));
        Rule rule = new Rule();
        rule.setMatch(match);
        EntireRule entireRule = new EntireRule();
        entireRule.setKind(RouterConstant.FLOW_MATCH_KIND);
        entireRule.setRules(Collections.singletonList(rule));
        RouterConfiguration configuration = new RouterConfiguration();
        configuration.updateServiceRule("foo", Collections.singletonList(entireRule));
        RuleUtils.initKeys(configuration);
        DubboConfigServiceImpl dubboConfigService = new DubboConfigServiceImpl();
        Set<String> headerKeys = dubboConfigService.getMatchKeys();
        Assert.assertEquals(1, headerKeys.size());

        // 清除缓存
        RuleUtils.initMatchKeys(new RouterConfiguration());

        RuleUtils.initKeys(configuration);
        SpringConfigServiceImpl springConfigService = new SpringConfigServiceImpl();
        headerKeys = springConfigService.getMatchKeys();
        Assert.assertEquals(1, headerKeys.size());
    }