@Test
    public void shouldReturnUuid() throws Exception {
        final Cluster cluster = TestClientFactory.build().create();
        try {
            final Client client = cluster.connect().alias("g");
            List<Result> returnedList = client.submit("g.inject(UUID())", RequestOptions.build().language("gremlin-lang").create()).all().get();
            assertEquals(1, returnedList.size());
            Object value = returnedList.get(0).getObject();
            assertTrue(value instanceof UUID);
        } finally {
            cluster.close();
        }
    }
Client created on an initially dead host should fail initially, and recover after the dead host has restarted
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinDriverIntegrateTest.java