CliHandler { public String[] fetchArguments() throws ParseException { CommandLine commandLine = parser.parse(options, args); return commandLine.getArgs(); } CliHandler(String[] args); void printUsage(); HashMap<String, String> fetchTemplateFiles(); HashMap<String, String> fetchSourceItemFiles(); String fetchTargetItemFile(); HashMap<String, String> fetchGlobalMetadataFiles(); String[] fetchArguments();  }
@Test public void testParseArguments() throws Exception { String[] arguments = cliHandler.fetchArguments(); assertEquals(3, arguments.length); assertEquals("var1", arguments[0]); assertEquals("var2", arguments[1]); assertEquals("var3 var3a", arguments[2]); }