@Test(expected = CommandLineParserException.class)
public void testRequiredOptions() 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 = "-u -v";
  CommandParser.parse(_args.split(" "), options);
}