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 hdfsJournalDir() throws Throwable {
    String journalPath = "hdfs://namenode:port/alluxio/journal";
    Configuration.set(PropertyKey.MASTER_JOURNAL_TYPE, JournalType.UFS);
    Configuration.set(PropertyKey.MASTER_JOURNAL_FOLDER, journalPath);

    JournalTool.main(new String[0]);
    String inputUri = Whitebox.getInternalState(JournalTool.class, "sInputDir");
    Assert.assertEquals(journalPath, inputUri);
  }