public void serializeFolder() {
    log += "Running test: Serialize folder (lines, timetotal)";
    System.out.println("running test: serialize folder");
    CSVFolder folder;
    // this.manager.uploadFolder(folder);
    // folder = this.manager.downloadFolder(folder.getCapability());

    // int[] points = { 1, 10, 50, 100, 500, 750, 1000, 5000, 10000 };
    HashMap<String, Capability> fakeAliases;

    for (int i = 0; i < points.length; i++) {
      folder = new CSVFolder();
      folder.hack_do_not_create_plaintext = true;
      // fakeAliases = generateFakeAliases(points[i]);
      // folder.getContents().putAll(fakeAliases);
      // Time Encryption/Signing
      for (int j = 0; j < points[i]; j++) {
        folder.addContent(aliases[j], caps[j]);
      }

      long before = System.currentTimeMillis();
      // byte[] tmp = folder.upload();
      // folder.encrypt();
      // folder.sign();
      folder.createPlainText();
      long after = System.currentTimeMillis();
      long diff = after - before;
      System.out.println("Updatefolder point: " + points[i] + " time: " + diff);
      log += points[i] + " " + diff + "\n";
      // folder = this.manager.downloadFolder(folder.getCapability());

    }
  }
  public void createTestData() throws IOException {
    OutputStream os = new FileOutputStream("/tmp/data.txt");
    int highvalue = 10000;
    HashMap<String, Capability> foo = generateFakeAliases(highvalue);
    CSVFolder folder = new CSVFolder();
    folder.getContents().putAll(foo);

    folder.createPlainText();
    os.write(folder.plainText);
    os.flush();
    os.close();
  }
  public void testUpdateFolder()
      throws ServerCommunicationException, InvalidWriteEnablerException,
          ImmutableFileExistsException, RemoteFileDoesNotExistException,
          FailedToVerifySignatureException {
    System.out.println("running test: Update folder");
    log += "Running test: Update folder (lines, timetotal)\n";

    CSVFolder folder;
    // this.manager.uploadFolder(folder);
    // folder = this.manager.downloadFolder(folder.getCapability());

    // int[] points = { 1, 10, 50, 100, 500, 750, 1000, 5000, 10000 };
    HashMap<String, Capability> fakeAliases;

    for (int i = 0; i < points.length; i++) {
      folder = new CSVFolder();
      folder.hack_do_not_create_plaintext = true;
      // fakeAliases = generateFakeAliases(points[i]);
      // folder.getContents().putAll(fakeAliases);

      for (int j = 0; j < points[i]; j++) {
        folder.addContent(aliases[j], caps[j]);
      }

      // Time Encryption/Signing
      folder.createPlainText();
      long before = System.currentTimeMillis();
      // byte[] tmp = folder.upload();
      folder.encrypt();
      folder.sign();
      long after = System.currentTimeMillis();
      long diff = after - before;
      System.out.println("Updatefolder point: " + points[i] + " time: " + diff);
      log += points[i] + " " + diff + "\n";
      // folder = this.manager.downloadFolder(folder.getCapability());

    }
  }