### Question:
StreamJob implements Tool { @Override public int run(String[] args) throws Exception { try { this.argv_ = Arrays.copyOf(args, args.length); init(); preProcessArgs(); parseArgv(); if (printUsage) { printUsage(detailedUsage_); return 0; } postProcessArgs(); setJobConf(); } catch (IllegalArgumentException ex) { LOG.debug("Error in streaming job", ex); return 1; } return submitAndMonitorJob(); } @Deprecated  StreamJob(String[] argv, boolean mayExit);  StreamJob(); @Override Configuration getConf(); @Override void setConf(Configuration conf); @Override int run(String[] args); static JobConf createJob(String[] argv); @Deprecated int go(); void exitUsage(boolean detailed); void fail(String message); int submitAndMonitorJob();  }### Answer:
@Test public void testOptions() throws Exception { StreamJob streamJob = new StreamJob(); assertEquals(1, streamJob.run(new String[0])); assertEquals(0, streamJob.run(new String[] {"-help"})); assertEquals(0, streamJob.run(new String[] {"-info"})); }