stateEngine.prepareForWrite();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
FastBlobWriter writer = new FastBlobWriter(stateEngine, 0);
writer.writeSnapshot(new DataOutputStream(baos));
FastBlobReader reader = new FastBlobReader(stateEngine);
reader.readSnapshot(new ByteArrayInputStream(baos.toByteArray()));
}
/**
* This Integer serializer is deliberately unable to deserialize the value "2".
*