@Test
    public void testJWTAndRewrite() throws IOException {
        try {
            setupJWT();
            setupRewrite();

            final String key = "shenyu-test-shenyu-test-shenyu-test";
            final String token = Jwts.builder().setId("1001").signWith(Keys.hmacShaKeyFor(key.getBytes(StandardCharsets.UTF_8)), SignatureAlgorithm.HS256).compact();
            Map<String, Object> headers = new HashMap<>();
            headers.put("token", token);

            JsonObject request = new JsonObject();
            request.addProperty("userId", TEST_USER_ID);
            request.addProperty("userName", TEST_USER_NAME);
            ModifyResponseDTO actualUser = HttpHelper.INSTANCE.postGateway(TEST_MODIFY_REQUEST, headers, request, ModifyResponseDTO.class);

            assertThat(actualUser.getBody().getUserName(), is(TEST_USER_NAME));
            assertThat(actualUser.getBody().getUserId(), is(TEST_USER_ID));
        } finally {
            cleanJWT();
            cleanRewrite();
        }
    }
The combination test of JWT plugin and Rewrite plugin.
shenyu-integrated-test/shenyu-integrated-test-combination/src/test/java/org/apache/shenyu/integrated/test/combination/MultiRequestPluginTest.java