private static void assertSslException(Exception x, String expectedSubstring) {
        logger.warn("Exception caught: {}", x.getMessage(), x);
        final Throwable root = ExceptionHelper.getRootCause(x);
        assertThat(root, instanceOf(SSLException.class));
        assertThat(root.getMessage(), containsString(expectedSubstring));
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java