CliHandler { public HashMap<String, String> fetchGlobalMetadataFiles() throws ParseException { String optionName = "m"; return parseKeyValueOption(optionName); } CliHandler(String[] args); void printUsage(); HashMap<String, String> fetchTemplateFiles(); HashMap<String, String> fetchSourceItemFiles(); String fetchTargetItemFile(); HashMap<String, String> fetchGlobalMetadataFiles(); String[] fetchArguments();  }
@Test public void testParseStaticMetadataTextFiles() throws Exception { HashMap<String, String> metadataFile = cliHandler.fetchGlobalMetadataFiles(); assertEquals(2, metadataFile.size()); assertEquals("/root/dir/global-metadata.txt", metadataFile.get("meta1")); assertEquals("/root/dir/lut.properties", metadataFile.get("meta2")); }