@Test
    void testInvalidMediaType() throws Exception {
        final String loggerPath = "/internal/actuator/loggers/" + TEST_LOGGER_NAME;
        final AggregatedHttpResponse res =
                client.execute(RequestHeaders.of(HttpMethod.POST, loggerPath,
                                                 HttpHeaderNames.CONTENT_TYPE, MediaType.PROTOBUF),
                               OBJECT_MAPPER.writeValueAsBytes(ImmutableMap.of("configuredLevel", "info")))
                      .aggregate().get();
        assertThat(res.status()).isEqualTo(HttpStatus.UNSUPPORTED_MEDIA_TYPE);
    }
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