@Test
    public void shouldEnableWebSocketSsl() throws Exception {
        try (SimpleClient client = TestClientFactory.createSSLSimpleHttpClient()) {
            final Map<String, Object> bindings = new HashMap<>();
            bindings.put("x", 123);
            bindings.put("y", 123);
            final RequestMessage request = RequestMessage.build("x+y")
                    .addBindings(bindings).addLanguage("gremlin-groovy").create();
            final CountDownLatch latch = new CountDownLatch(1);
            final AtomicBoolean pass = new AtomicBoolean(false);
            client.submit(request, result -> {
                System.out.println(result.getStatus());
                if (result.getStatus().getCode() != HttpResponseStatus.PARTIAL_CONTENT) {
                    pass.set(HttpResponseStatus.OK == result.getStatus().getCode() &&
                            (((int) ((List) result.getResult().getData()).get(0) == 246)));
                }
                latch.countDown();
            });

            if (!latch.await(3000, TimeUnit.MILLISECONDS))
                fail("Request should have returned error, but instead timed out");
            assertThat(pass.get(), is(true));
        }
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java