private void fillDeserializationWithImage(FastBlobStateEngine serverStateEngine, FastBlobStateEngine clientStateEngine,
int imageIndex) throws Exception {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
FastBlobWriter writer = new FastBlobWriter(serverStateEngine, imageIndex);
writer.writeSnapshot(baos);
FastBlobReader reader = new FastBlobReader(clientStateEngine);
reader.readSnapshot(new ByteArrayInputStream(baos.toByteArray()));
}
}