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