@GetMapping("/plugin/rule/delete")
    public Mono<String> deleteRule(@RequestParam("selectorId") final String selectorId,
                                   @RequestParam("id") final String id,
                                   @RequestParam("pluginName") final String pluginName) {
        RuleData ruleData = RuleData.builder().selectorId(selectorId).id(id).pluginName(pluginName).build();
        subscriber.unRuleSubscribe(ruleData);
        return Mono.just(Constants.SUCCESS);
    }
@Test
    public void testDeleteRule() throws Exception {
        final String testSelectorId = "testSaveRuleId";
        final String testRuleId = "ruleId";
        final String pluginName = "pluginName";
        final RuleData ruleData = createRuleData(testSelectorId, testRuleId);
        subscriber.onRuleSubscribe(ruleData);
        this.mockMvc
                .perform(MockMvcRequestBuilders.get("/shenyu/plugin/rule/delete")
                .param("selectorId", ruleData.getSelectorId())
                .param("id", ruleData.getId())
                .param("pluginName", pluginName)
                .contentType(MediaType.APPLICATION_JSON))
                .andExpect(status().isOk())
                .andReturn();

        final List<RuleData> selectorId = baseDataCache.obtainRuleData(testSelectorId);
        Assertions.assertTrue(selectorId.isEmpty());
    }