/**
   * Test of parse method with jar arg, of class CliParser.
   *
   * @throws Exception thrown when an excpetion occurs.
   */
  @Test
  public void testParse_scan_withFileExists() throws Exception {
    System.out.println("parse -scan checkSumTest.file");
    File path =
        new File(this.getClass().getClassLoader().getResource("checkSumTest.file").getPath());
    String[] args = {"-scan", path.getCanonicalPath(), "-out", "./", "-app", "test"};

    CliParser instance = new CliParser();
    instance.parse(args);

    assertEquals(path.getCanonicalPath(), instance.getScanFiles()[0]);

    assertFalse(instance.isGetVersion());
    assertFalse(instance.isGetHelp());
    assertTrue(instance.isRunScan());
  }