GenericOptionsParser { public String[] getRemainingArgs() { return (commandLine == null) ? new String[]{} : commandLine.getArgs(); } GenericOptionsParser(Options opts, String[] args);  GenericOptionsParser(String[] args);  GenericOptionsParser(Configuration conf, String[] args);  GenericOptionsParser(Configuration conf,
      Options options, String[] args); String[] getRemainingArgs(); Configuration getConfiguration(); CommandLine getCommandLine(); boolean isParseSuccessful(); static URL[] getLibJars(Configuration conf); static void printGenericCommandUsage(PrintStream out);  }
@Test public void testNullArgs() throws IOException { GenericOptionsParser parser = new GenericOptionsParser(conf, null); parser.getRemainingArgs(); }