Import implements Command { @Override public Options getOptions() { 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"); return options; }  @Override String getCommandName(); @Override void run(HashMap<String, Object> args); @Override Options getOptions(); @Override void validate(HashMap<String, Object> args);  }
@Test public void getOptions() { Command command = new Import(); Options options = command.getOptions(); assertEquals(options.getOptions().size(), 4); assertTrue(options.hasOption("d")); assertTrue(options.hasOption("u")); assertTrue(options.hasOption("v")); assertTrue(options.hasOption("o")); }