@Test
    public void shouldGetPath() {
        final Path p = g.traversal().V().out().path().next();
        final Result result = new Result(p);

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