@Test
    public void shouldGetVertexProperty() {
        final VertexProperty<String> v = g.vertices(1).next().property("name");
        final Result result = new Result(v);

        assertEquals(v, result.getVertexProperty());
        assertEquals(v, result.get(VertexProperty.class));
        assertEquals(v, result.getElement());
        assertEquals(v, result.get(Element.class));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-driver/src/test/java/org/apache/tinkerpop/gremlin/driver/ResultTest.java