@Test
    public void shouldReadWriteTraversalTree() throws Exception {
        final String resourceName = "traversal-tree";

        final Tree resource = findModelEntryObject(resourceName);
        final Tree fromStatic = read(readFromResource(resourceName), Tree.class);
        final Tree recycled = read(write(fromStatic, Tree.class, resourceName), Tree.class);
        assertEquals(fromStatic, recycled);
        assertEquals(resource, fromStatic);
        assertEquals(resource, recycled);
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-util/src/test/java/org/apache/tinkerpop/gremlin/structure/io/AbstractTypedCompatibilityTest.java