@Bean
        public ServerErrorHandler serverErrorHandler1() {
            return (ctx, cause) -> {
                if (cause instanceof ArithmeticException) {
                    return HttpResponse.of("ArithmeticException was handled by serverErrorHandler!");
                }
                return null;
            };
        }
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