@SuppressWarnings("unchecked")
    public void init() throws IllegalAccessException, IOException {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        client = spy(ShenyuSdkClient.class);
        ((DefaultListableBeanFactory) context.getBeanFactory()).setAllowBeanDefinitionOverriding(false);
        context.register(AbstractProxyTest.TestConfig.class);
        context.register(SpringMvcContract.class);
        context.registerBean("shenyuSdkClient", ShenyuSdkClient.class, () -> client);

        context.refresh();

        topClient = context.getBean(AbstractProxyTest.InvocationClient.class);
        ShenyuClientInvocationHandler invocationHandler = (ShenyuClientInvocationHandler) ReflectionTestUtils.getField(topClient, "h");
        map = (Map<Method, ShenyuClientMethodHandler>) METHOD_HANDLER_MAP.get(invocationHandler);
    }
proxy test protect method.
@throws IllegalAccessException IllegalAccessException
@throws IOException            IOException
shenyu-sdk/shenyu-sdk-spring/src/test/java/org/apache/shenyu/sdk/spring/proxy/AbstractProxyTest.java