private void testRateLimiterAndRedirect(final String algorithmName) throws IOException, InterruptedException {
        try {
            setupRateLimiter(algorithmName);
            setupRedirect();

            PluginData pluginData = new PluginData();
            pluginData.setEnabled(true);
            pluginData.setName(PluginEnum.REDIRECT.getName());
            pluginData.setConfig("{\"ruleHandlePageType\":\"custom\"}");

            String response = HttpHelper.INSTANCE.postGateway(TEST_MODIFY_REQUEST, pluginData, String.class);
            assertThat(response, is("success"));

            AdminResponse<Object> errorRsp = HttpHelper.INSTANCE.postGateway(TEST_MODIFY_REQUEST, pluginData, new TypeToken<AdminResponse<Object>>() {
            }.getType());
            assertThat(errorRsp.getMessage(), is("You have been restricted, please try again later!"));
            assertThat(errorRsp.getCode(), is(429));

            Thread.sleep(2000);

            response = HttpHelper.INSTANCE.postGateway(TEST_MODIFY_REQUEST, pluginData, String.class);
            assertThat(response, is("success"));
        } finally {
            cleanRateLimiter();
            cleanRedirect();
        }
    }
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