@Test
    public void testTlsV11Stub() {

        Exception exception = assertThrows(StatusRuntimeException.class, () -> {
            tlsV11Stub.normal(Empty.getDefaultInstance()).getVersion();
        });
        assertTrue(exception.getCause() instanceof SSLHandshakeException);
    }
Tests behaviour with TLSv1.1 and shared protocols. Test should fail, as the server does not support TLSv1.1.
tests/src/test/java/net/devh/boot/grpc/test/setup/CustomCiphersAndProtocolsSetupTest.java