@Override
    public void removeRule(final RuleData ruleData) {
        Optional.ofNullable(ruleData.getHandle()).ifPresent(s -> CACHED_HANDLE.get().removeHandle(CacheKeyUtils.INST.getKey(ruleData)));
    }
@Test
    public void testRemoveRule() {
        Supplier<CommonHandleCache<String, WebSocketRuleHandle>> cache = WebSocketPluginDataHandler.CACHED_HANDLE;
        cache.get().cachedHandle("1_test", new WebSocketRuleHandle());
        Assertions.assertNotEquals(cache.get().obtainHandle("1_test"), null);
        webSocketPluginDataHandler.removeRule(ruleData);
        Assertions.assertNull(cache.get().obtainHandle("1_test"));
    }