@Override
        public <O extends OutputShim> void write(final KryoShim<?, O> kryo, final O output, final ToyTriangle toyTriangle) {
            output.writeInt(toyTriangle.x);
            output.writeInt(toyTriangle.y);
            output.writeInt(toyTriangle.z);
        }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/ToyTriangle.java