public boolean removeConfig(String dataId, String group, String tenant, String tag) throws NacosException {
        return agent.removeConfig(dataId, group, tenant, tag);
    }
@Test
    void testRemoveConfig() throws NacosException {
        
        Properties prop = new Properties();
        ConfigFilterChainManager filter = new ConfigFilterChainManager(new Properties());
        ServerListManager agent = Mockito.mock(ServerListManager.class);
        
        final NacosClientProperties nacosClientProperties = NacosClientProperties.PROTOTYPE.derive(prop);
        ClientWorker clientWorker = new ClientWorker(filter, agent, nacosClientProperties);
        
        String dataId = "a";
        String group = "b";
        String tenant = "c";
        
        String tag = "tag";
        try {
            Mockito.when(rpcClient.request(any(ConfigRemoveRequest.class), anyLong()))
                    .thenThrow(new NacosException(503, "overlimit"));
            
            clientWorker.removeConfig(dataId, group, tenant, tag);
            fail();
        } catch (NacosException e) {
            assertEquals("overlimit", e.getErrMsg());
            assertEquals(503, e.getErrCode());
            
        }
    }