code: private FastBlobStateEngine getDeserializedStateEngineWithObjects(A... objects) throws IOException {
          FastBlobStateEngine stateEngine = new FastBlobStateEngine(new ExampleSerializerFactory());
  
          for(A object : objects) {
              stateEngine.add("A", object);
          }
  
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          DataOutputStream dataOutputStream = new DataOutputStream(baos);
  
          stateEngine.prepareForWrite();
  
          FastBlobWriter writer = new FastBlobWriter(stateEngine);
          writer.writeSnapshot(dataOutputStream);
  
          FastBlobReader reader = new FastBlobReader(stateEngine);
          reader.readSnapshot(new ByteArrayInputStream(baos.toByteArray()));
  
          return stateEngine;
      }
docs: /*
  Round trip the objects in a FastBlobStateEngine, so they appear in the type deserialization state.