@Test
    public void shouldEventuallySucceedWithRoundRobin() {
        final String noGremlinServer = "74.125.225.19";
        final Cluster cluster = TestClientFactory.build().addContactPoint(noGremlinServer).create();

        try {
            final Client client = cluster.connect();
            client.init();

            // the first host is dead on init.  request should succeed on localhost
            assertEquals(2, client.submit("g.inject(2)").all().join().get(0).getInt());
            assertEquals(2, client.submit("g.inject(2)").all().join().get(0).getInt());
            assertEquals(2, client.submit("g.inject(2)").all().join().get(0).getInt());
            assertEquals(2, client.submit("g.inject(2)").all().join().get(0).getInt());
            assertEquals(2, client.submit("g.inject(2)").all().join().get(0).getInt());
        } finally {
            cluster.close();
        }
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java