@Test
    void exceptionReportInterval() {
        final Server server1 = Server.builder()
                                     .service("/", (ctx, req) -> HttpResponse.of(HttpStatus.OK))
                                     .unloggedExceptionsReportInterval(Duration.ofMillis(1000))
                                     .build();
        assertThat(server1.config().unloggedExceptionsReportIntervalMillis()).isEqualTo(1000);

        final Server server2 = Server.builder()
                                     .unloggedExceptionsReportInterval(Duration.ofMillis(0))
                                     .service("/", (ctx, req) -> HttpResponse.of(HttpStatus.OK))
                                     .build();
        assertThat(server2.config().unloggedExceptionsReportIntervalMillis()).isZero();

        assertThrows(IllegalArgumentException.class, () ->
                Server.builder()
                      .unloggedExceptionsReportInterval(Duration.ofMillis(-1000))
                      .service("/", (ctx, req) -> HttpResponse.of(HttpStatus.OK))
                      .build());
    }
Makes sure that {@link ServerBuilder#decorator(DecoratingHttpServiceFunction)} works at every service and
virtual hosts and {@link VirtualHostBuilder#decorator(DecoratingHttpServiceFunction)} works only at
its own services.
core/src/test/java/com/linecorp/armeria/server/ServerBuilderTest.java