@Test
    public void shouldHashAndEqualCorrectly() {
        final StarGraph graph = StarGraph.open();
        final Vertex v = graph.addVertex(T.id, 1, T.label, Vertex.DEFAULT_LABEL);
        final Set<VertexWritable> set = new HashSet<>();
        for (int i = 0; i < 100; i++) {
            set.add(new VertexWritable(v));
        }
        assertEquals(1, set.size());
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
hadoop-gremlin/src/test/java/org/apache/tinkerpop/gremlin/hadoop/structure/io/VertexWritableTest.java