@Test
    public void testJWTAndRedirect() throws IOException {
        try {
            setupJWT();
            setupRedirect();

            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);
            PluginData pluginData = new PluginData();
            pluginData.setEnabled(true);
            pluginData.setName(PluginEnum.REDIRECT.getName());
            pluginData.setConfig("{\"ruleHandlePageType\":\"custom\"}");

            String response = HttpHelper.INSTANCE.postGateway(TEST_MODIFY_REQUEST, headers, pluginData, String.class);
            assertThat(response, is("success"));
        } finally {
            setupJWT();
            cleanRedirect();
        }
    }
The combination test of JWT plugin and Redirect plugin.
shenyu-integrated-test/shenyu-integrated-test-combination/src/test/java/org/apache/shenyu/integrated/test/combination/MultiRequestPluginTest.java