public void invalidate(final String selectorId) {
        grpcUpstreamCachedHandle.get().removeHandle(selectorId);
        cache.invalidate(selectorId);
        watchUpstreamListener.remove(selectorId);
        ruleCachedHandle.get().removeHandle(CacheKeyUtils.INST.getKey(selectorId, Constants.DEFAULT_RULE));
        GrpcClientCache.removeClient(selectorId);
    }
@Test
    public void testInvalidate() {
        this.applicationConfigCache.invalidate(selector.getName());
        final List<ShenyuServiceInstance> shenyuServiceInstances = this.applicationConfigCache.get(selector.getName()).getShenyuServiceInstances();
        assertTrue(CollectionUtils.isEmpty(shenyuServiceInstances), "shenyuServiceInstances mast is empty");
    }