HadoopImageDownload extends Configured implements Tool { public static void main(String[] args) throws Exception { int res = ToolRunner.run(new Configuration(), new HadoopImageDownload(), args); System.exit(res); }  @Override int run(String[] args); static void main(String[] args);  }
@Test public void testImageDownload() throws Exception{ System.out.println("Downloading images from: " + exampleFile); HadoopImageDownload .main(new String[]{"-i",exampleFile.getAbsolutePath(),"-o",exampleOut.getAbsolutePath()}); }