@Bean
    public ShenyuPlugin redirectPlugin(final DispatcherHandler dispatcherHandler) {
        return new RedirectPlugin(dispatcherHandler);
    }
@Test
    public void testRedirectPlugin() {
        new ApplicationContextRunner()
            .withConfiguration(AutoConfigurations.of(RedirectPluginConfiguration.class))
            .withBean(RedirectPluginConfigurationTest.class)
            .withBean(DispatcherHandler.class)
            .withPropertyValues("debug=true")
            .run(context -> {
                ShenyuPlugin shenyuPlugin = context.getBean("redirectPlugin", ShenyuPlugin.class);
                assertNotNull(shenyuPlugin);
                assertThat(shenyuPlugin.named()).isEqualTo(PluginEnum.REDIRECT.getName());
            });
    }