@Test
        void testOptions() {
            final HttpRequest req = HttpRequest.of(RequestHeaders.of(
                    HttpMethod.OPTIONS, "/internal/actuator/health",
                    HttpHeaderNames.ORIGIN, "https://example.com",
                    HttpHeaderNames.ACCESS_CONTROL_REQUEST_METHOD, "GET"));
            final AggregatedHttpResponse res = client.execute(req).aggregate().join();
            assertThat(res.status()).isEqualTo(HttpStatus.OK);
            assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN))
                    .isEqualTo("https://example.com");
            assertThat(res.headers().get(HttpHeaderNames.ACCESS_CONTROL_ALLOW_METHODS))
                    .isEqualTo("GET,POST");
            assertThat(res.headers().contains(HttpHeaderNames.ACCESS_CONTROL_MAX_AGE)).isTrue();
            assertThat(res.status()).isNotEqualTo(HttpStatus.METHOD_NOT_ALLOWED);
        }
This uses {@link com.linecorp.armeria.spring.ArmeriaAutoConfiguration} for integration tests.
{@code application-autoConfTest.yml} will be loaded with minimal settings to make it work.
spring/boot3-actuator-autoconfigure/src/test/java/com/linecorp/armeria/spring/actuate/ArmeriaSpringActuatorAutoConfigurationTest.java