@Test
    public void shouldHaveEqualVertexWritableAndInternalVertex() throws Exception {
        final StarGraph graph = StarGraph.open();
        final Vertex v = graph.addVertex(T.id, 1, T.label, Vertex.DEFAULT_LABEL);
        final VertexWritable vw = new VertexWritable(v);
        assertEquals(vw, vw);
        assertEquals(vw, byteClone(vw));
        assertEquals(v, byteClone(vw).get());
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
hadoop-gremlin/src/test/java/org/apache/tinkerpop/gremlin/hadoop/structure/io/VertexWritableTest.java