private ServerWebExchange generateServerWebExchange(final String name) {
        ServerWebExchange exchange = MockServerWebExchange
                .from(MockServerHttpRequest.get("/test").build());
        ShenyuContext shenyuContext = new ShenyuContext();
        shenyuContext.setRpcType(name);
        exchange.getAttributes().put(Constants.CONTEXT, shenyuContext);
        return exchange;
    }
The test case for {@link ResponsePlugin}.
shenyu-plugin/shenyu-plugin-response/src/test/java/org/apache/shenyu/plugin/response/ResponsePluginTest.java