@BeforeAll
    static void beforeAll() throws IOException {
        applicationContext.refresh();
        // Init classes before the actual test, because that is somewhat slow
        applicationContext.start();
        server.start();
        withStub(ZERO, stub -> {

            service.nextDelay(ofMillis(1));
            stub.normal(EMPTY);

            service.awaitAllRequestsArrived();

        });
    }
Tests for {@link InProcessChannelFactory}'s shutdown behavior using an in-process server/channel.
tests/src/test/java/net/devh/boot/grpc/test/shutdown/GrpcChannelLifecycleWithCallsTest.java