@Test
public void testParse() throws CommandLineParserException {

  Options options = new Options();
  options.addRequiredOption(
      DIRECTORY_OPTION,
      DIRECTORY_LONG_OPTION,
      true,
      "directory containing mutiple commit folders with meta files");
  options.addOption(
      OVERWRITE_OPTION,
      OVERWRITE_LONG_OPTION,
      false,
      "overwrite the bug if it already exists in the backend");
  options.addOption(VERBOSE_OPTION, VERBOSE_LONG_OPTION, false, "Verbose mode");
  options.addOption(
      UPLOAD_CONSTRUCT_OPTION, UPLOAD_LONG_OPTION, false, "Upload construct changes");
  String _args = "-d test -u -v";
  HashMap<String, Object> parsedCommands = CommandParser.parse(_args.split(" "), options);
  assertEquals("test", parsedCommands.get(DIRECTORY_OPTION));
  assertTrue((boolean) parsedCommands.get(VERBOSE_OPTION));
  assertTrue((boolean) parsedCommands.get(UPLOAD_CONSTRUCT_OPTION));
  assertFalse((boolean) parsedCommands.get(OVERWRITE_OPTION));
}