code: public static void loadFromSerializedXZ(InputStream is, String bucketName, CouchbaseMock mock) throws IOException {
          XZInputStream xzi = new XZInputStream(is);
          ObjectInputStream ois = new ObjectInputStream(xzi);
          StoredInfo si;
          try {
              si = (StoredInfo) ois.readObject();
          } catch (ClassNotFoundException ex) {
              throw new IOException(ex);
          }
  
          DocumentLoader loader = new DocumentLoader(mock, bucketName);
          for (Map.Entry<String,String> ent : si.documents.entrySet()) {
              loader.handleDocument(ent.getKey(), ent.getValue());
          }
          for (Map.Entry<String,String> ent: si.designs.entrySet()) {
              loader.handleDesign(ent.getKey(), ent.getValue());
          }
          System.err.printf("Finished loading %d documents and %d designs into %s%n", si.documents.size(), si.designs.size(), bucketName);
      }
docs: Loads the {@code beer-sample} documents from the built-in serialized compressed resource.
  
  @param is The input stream
  @param bucketName The target bucket into which the docs should be loaded
  @param mock The cluster
  @throws IOException if an I/O error occurs