@Test
    public void shouldGetProperty() {
        final Property<Double> p = g.edges(11).next().property("weight");
        final Result result = new Result(p);

        assertEquals(p, result.getProperty());
        assertEquals(p, result.get(Property.class));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-driver/src/test/java/org/apache/tinkerpop/gremlin/driver/ResultTest.java