### Question:
URLParser { public static String logFileNamefromURI(String uri) { try { uri = URLDecoder.decode(uri, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } String fileName = getRelativeLogFile(uri); if ("".equals(fileName)) { return ""; } return Configuration.appendLogsRoot(fileName); }  static String logFileNamefromURI(String uri); static String fileNamefromURI(final String uri); static String scriptFileNamefromURI(final String uri, final String token); static String getCommandFromUri(final String uri, String initialToken);  }### Answer:
@Test public void testLogFileNamefromURI() { assertEquals("", URLParser.logFileNamefromURI("/_s_/" + Command.LOG_VIEW + "/")); assertEquals("", URLParser.logFileNamefromURI("/_s_/" + Command.LOG_VIEW)); assertEquals("", URLParser.logFileNamefromURI("/_s_/" + Command.LOG_VIEW + " }