@Override
        public void serialize(final ByteBuffer byteBuffer, final ByteBuffer copy) {
            ByteBufferUtils.copy(copy, byteBuffer);
        }
Borrowed from org.lmdbjava.ByteBufferProxy for testing
stroom-lmdb/src/test/java/stroom/lmdb/TestLmdbJavaComparator.java