@Test
    public void shouldHandleVertexResult() throws Exception {
        RequestOptions options = RequestOptions.build().addG("gmodern").create();
        final ResultSet results = client.submit("g.V(1).next()", options);
        final Vertex v = results.all().get().get(0).getVertex();
        assertThat(v, instanceOf(DetachedVertex.class));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinResultSetIntegrateTest.java