@Test
    @FeatureRequirementSet(FeatureRequirementSet.Package.VERTICES_ONLY)
    public void shouldConstructVertexWritableWithCorrectByteRepresentation() {
        final StarGraph graph = StarGraph.open();
        final Vertex v = graph.addVertex(T.id, 1, T.label, Vertex.DEFAULT_LABEL, "test", "123");
        v.property(VertexProperty.Cardinality.list, "name", "marko", "acl", "private");
        final VertexWritable vw = byteClone(new VertexWritable(v));

        assertEquals(v.id(), vw.get().id());
        assertEquals(v.label(), vw.get().label());
        assertEquals("123", vw.get().value("test"));
        assertEquals(2, IteratorUtils.count(vw.get().properties()));
        assertEquals("marko", vw.get().value("name"));
        assertEquals("private", vw.get().property("name").value("acl"));
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
hadoop-gremlin/src/test/java/org/apache/tinkerpop/gremlin/hadoop/structure/io/VertexWritableTest.java