### Question:
URLParser { public static String fileNamefromURI(final String uri) { int questionIndex = uri.indexOf("?"); if (questionIndex == -1) questionIndex = uri.length(); return Utils.concatPaths(Configuration.getHtdocsRoot(), uri.substring(uri.indexOf("_s_/") + 4, questionIndex)); }  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 testFileNameFromURIIgnoresQueryString() { assertTrue(URLParser.fileNamefromURI("/_s_/spr/a/b/c/d.eee?fff").replace('\\', '/').endsWith("spr/a/b/c/d.eee")); }