KryoVertexiumSerializer implements VertexiumSerializer { @Override public byte[] objectToBytes(Object object) { if (object == null) { return EMPTY; } Output output = new UnsafeOutput(2000, -1); kryo.get().writeClassAndObject(output, object); return output.toBytes(); }  @Override byte[] objectToBytes(Object object); @Override @SuppressWarnings("unchecked") T bytesToObject(byte[] bytes);  }
@Test public void testObjectToValue() { byte[] valBytes = new KryoVertexiumSerializer().objectToBytes(new Date()); assertEquals(10, valBytes.length); }