@Test
    public void testMethodCache() {
        final String key = TestInterface.class.getCanonicalName();
        final Method method = ReflectUtils.getMethod(TestInterface.class, "invoke", SofaRequest.class);
        Assert.assertNull(ReflectCache.getMethodCache(key, "invoke"));

        ReflectCache.putMethodCache(key, method);
        Assert.assertEquals(method, ReflectCache.getMethodCache(key, "invoke"));

        ReflectCache.invalidateMethodCache(key);
        Assert.assertNull(ReflectCache.NOT_OVERLOAD_METHOD_CACHE.get(key));
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/common/cache/ReflectCacheTest.java