@Test
    public void testRequestAndRewrite() throws IOException {
        try {
            setupRequest();
            setupRewrite();

            JsonObject request = new JsonObject();
            request.addProperty("userId", TEST_USER_ID);
            request.addProperty("userName", TEST_USER_NAME);
            ModifyResponseDTO actualUser = HttpHelper.INSTANCE.postGateway(TEST_MODIFY_REQUEST, request, ModifyResponseDTO.class);
            assertThat(actualUser.getBody().getUserName(), is(TEST_USER_NAME));
            assertThat(actualUser.getBody().getUserId(), is(TEST_USER_ID));

            assertThat(actualUser.getCookie(), is("cookie"));
            assertThat(actualUser.getHeader(), is("requestHeader"));
            assertThat(actualUser.getParameter(), is("requestParameter"));
        } finally {
            cleanRequest();
            cleanRewrite();
        }
    }
The combination test of Request plugin and Rewrite plugin.
shenyu-integrated-test/shenyu-integrated-test-combination/src/test/java/org/apache/shenyu/integrated/test/combination/MultiRequestPluginTest.java