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