@Test
    public void shouldWorkWithSSLAndAuth() throws Exception {
        CombinedTestClient client =  new CombinedTestClient(getSecureProtocol());
        try {
            client.sendAndAssertUnauthorized("g.inject(4)", "stephen", "incorrect-password");
        } finally {
            client.close();
        }

        client = new CombinedTestClient(getSecureProtocol());
        try {
            client.sendAndAssert("g.inject(4)", 4, "stephen", "password");
        } finally {
            client.close();
        }

        client = new CombinedTestClient(getSecureProtocol());
        try {
            // Expect exception when try again if the server pipeline is correct
            client.sendAndAssertUnauthorized("g.inject(4)", "stephen", "incorrect-password");
        } finally {
            client.close();
        }
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/channel/AbstractGremlinServerChannelizerIntegrateTest.java