public static void main(String[] args) throws Throwable {
    if (!parseInputArgs(args)) {
      usage();
      System.exit(EXIT_FAILED);
    }
    if (sHelp) {
      usage();
      System.exit(EXIT_SUCCEEDED);
    }

    try {
      dumpJournal();
    } catch (Exception exc) {
      System.out.printf("Journal tool failed: %s%n", exc);
    }
  }
@Test
  public void relativeLocalJournalInput() throws Throwable {
    String journalPath = "fileA";
    JournalTool.main(new String[]{"-inputDir", journalPath});
    String inputUri = Whitebox.getInternalState(JournalTool.class, "sInputDir");
    Assert.assertEquals(
        Paths.get(System.getProperty("user.dir"), journalPath).toString(), inputUri);
  }