@Test
    void testZeroShutdownGracePeriod() {

        withServer(ZERO, (service, lifecycle) -> {
            // Start server
            lifecycle.start();

            // Send request (Takes 5s)
            service.nextDelay(ofMillis(5000));
            final Future<SomeType> request = stub.normal(EMPTY);

            service.awaitAllRequestsArrived();

            // Shutdown and don't wait for graceful shutdown (we give it a short time to finish shutting down)
            assertTimeoutPreemptively(ofMillis(A_BIT_TIME), (Executable) lifecycle::stop);

            // The request did not complete in time
            assertFailedShutdown(request);
        });
    }
Tests for {@link GrpcServerLifecycle}'s shutdown behavior using an in-process server/channel.
tests/src/test/java/net/devh/boot/grpc/test/shutdown/GrpcServerLifecycleWithCallsTest.java