@Override
    protected boolean updateCacheIfNeed(final ConfigData<RuleData> result) {
        return updateCacheIfNeed(result, ConfigGroupEnum.RULE);
    }
@Test
    public void testUpdateCacheIfNeed() {
        final RuleDataRefresh ruleDataRefresh = mockRuleDataRefresh;
        // update cache, then assert equals
        ConfigData<RuleData> expect = new ConfigData<>();
        expect.setLastModifyTime(System.currentTimeMillis());
        ruleDataRefresh.updateCacheIfNeed(expect);
        assertThat(ruleDataRefresh.cacheConfigData(), is(expect));
    }