@Bean
    public ShenyuPlugin responsePlugin(final ObjectProvider<List<MessageWriter>> httpWriter) {
        Map<String, MessageWriter> writerMap = new LinkedHashMap<>();
        List<MessageWriter> writerList = httpWriter.getIfAvailable(ArrayList::new);
        for (MessageWriter writer : writerList) {
            List<String> supportTypes = writer.supportTypes();
            for (String type : supportTypes) {
                writerMap.put(type, writer);
            }
        }
        return new ResponsePlugin(writerMap);
    }
@Test
    public void testResponsePlugin() {
        applicationContextRunner
            .withPropertyValues("debug=true")
            .run(context -> {
                ShenyuPlugin plugin = context.getBean("responsePlugin", ShenyuPlugin.class);
                assertNotNull(plugin);
                assertThat(plugin instanceof ResponsePlugin).isEqualTo(true);
                assertThat(plugin.named()).isEqualTo(PluginEnum.RESPONSE.getName());
            });
    }