@Bean
        public DocServiceConfigurator annotatedServiceExamples() {
            return dsb -> dsb.exampleHeaders(AnnotatedService.class,
                                             HttpHeaders.of("x-additional-header", "headerVal"))
                             .exampleHeaders(AnnotatedService.class, "get",
                                             HttpHeaders.of("x-additional-header", "headerVal"))
                             .exampleHeaders(AnnotatedService.class, "error",
                                             HttpHeaders.of("x-additional-header", "headerVal"))
                             .exampleRequests(AnnotatedService.class, "post", "{\"foo\":\"bar\"}");
        }
This uses {@link ArmeriaAutoConfiguration} for integration tests.
application-autoConfTest.yml will be loaded with minimal settings to make it work.
spring/boot3-autoconfigure/src/test/java/com/linecorp/armeria/spring/ArmeriaAutoConfigurationTest.java