@Test
    void blockUntilShutdown() throws Exception {
        final AtomicBoolean stopped = new AtomicBoolean();
        final Server server = Server.builder()
                                    .service("/", (ctx, req) -> HttpResponse.of(HttpStatus.OK))
                                    .serverListener(new ServerListenerAdapter() {
                                        @Override
                                        public void serverStopping(Server server) throws Exception {
                                            stopped.set(true);
                                        }
                                    })
                                    .build();
        server.start().join();
        CommonPools.blockingTaskExecutor().schedule(server::close, 1, TimeUnit.SECONDS);
        server.blockUntilShutdown();
        assertThat(stopped).isTrue();
    }
Ensure that the connection is not broken even if {@link Service#serve(ServiceRequestContext, Request)}
raises an exception.
core/src/test/java/com/linecorp/armeria/server/ServerTest.java