### Question:
Plotter extends CmdArgs { public static void main(String... args) { try { Plotter plotter = new Plotter(); plotter.setArgs(args); plotter.plot(); } catch (Exception ex) { ex.printStackTrace(); } } Plotter(); void plot(); static void main(String... args);  }### Answer:
@Test public void test1() { try { URL url = PlotterTest.class.getResource("/20160612200334.trc"); File file = new File(url.toURI()); Plotter.main(file.getPath()); } catch (URISyntaxException ex) { fail(ex.getMessage()); Logger.getLogger(PlotterTest.class.getName()).log(Level.SEVERE, null, ex); } }