private static CreatorJournalEntry createSampleEntry2() {
    try {
      JournalEntryContext context =
          buildContext(
              "bogusStuff",
              false,
              new Date(),
              ENVIRONMENT_2,
              SUBJECT_2,
              EMPTY,
              RESOURCE_2,
              RECOVERY_2);

      CreatorJournalEntry entry = new CreatorJournalEntry("ingest", context);
      entry.addArgument("serialization", buildInputStream(CONTENT_2));
      entry.addArgument("message", "Metadata provider added by NSDL API");
      entry.addArgument("format", "foxml1.0");
      entry.addArgument("encoding", "UTF-8");
      entry.addArgument("newPid", true);

      return entry;
    } catch (JournalException e) {
      return null;
    }
  }
  private static CreatorJournalEntry createSampleEntry3() {
    JournalEntryContext context =
        buildContext(
            "mySecretWord", false, new Date(), ENVIRONMENT_3, SUBJECT_3, EMPTY, RESOURCE_3, EMPTY);

    CreatorJournalEntry entry = new CreatorJournalEntry("modifyDatastreamByReference", context);
    entry.addArgument("pid", "demo:19");
    entry.addArgument("dsId", "DS1");
    entry.addArgument("altIds", new String[] {"this", "that", "another"});
    entry.addArgument("dsLabel", "A different source and some AltIDs");
    entry.addArgument("versionable", true);
    entry.addArgument("mimeType", "text/html");
    entry.addArgument("formatUri", "\n");
    entry.addArgument("dsLocation", "http://myserver.edu/mydir/aDifferentFile.html");
    entry.addArgument("dsState", "A");
    entry.addArgument("message", "Modify by Reference with AltIDs");
    entry.addArgument("force", false);

    return entry;
  }
  /** Try entry 1 again, with null input stream. */
  private static CreatorJournalEntry createSampleEntry1a() {
    try {
      JournalEntryContext context =
          buildContext(
              "somePassword",
              false,
              new Date(),
              ENVIRONMENT_1,
              SUBJECT_1,
              EMPTY,
              RESOURCE_1,
              EMPTY);

      CreatorJournalEntry entry = new CreatorJournalEntry("modifyDatastreamByValue", context);

      entry.addArgument("pid", "hdl:2200%2F20061003155524381T");
      entry.addArgument("dsId", "format_nsdl_dc");
      entry.addArgument("altIds", new String[0]);
      entry.addArgument("dsLabel", "format_nsdl_dc data stream");
      entry.addArgument("versionable", true);
      entry.addArgument("mimeType", "application/xml");
      entry.addArgument("formatUri", "unknown");
      entry.addArgument("dsContent", null);
      entry.addArgument("dsState", "A");
      entry.addArgument("message", "Modified by NSDL API");
      entry.addArgument("force", true);
      return entry;
    } catch (JournalException e) {
      return null;
    }
  }