### Question:
URLParser { public static String getCommandFromUri(final String uri, String initialToken) { int ix1 = uri.indexOf(initialToken); if (ix1 == -1) { return null; } ix1 = ix1 + initialToken.length(); int ix2 = uri.indexOf("/", ix1); int ix3 = uri.indexOf("?", ix1); int endIx = -1; if (ix2 > -1 && ix3 == -1) { endIx = ix2; } else if (ix3 > -1 && ix2 == -1) { endIx = ix3; } else { endIx = ix3 < ix2 ? ix3 : ix2; } if (endIx == -1) { endIx = uri.length(); } return uri.substring(ix1, endIx); }  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 testGetCommandFromUri() { assertEquals("Player_currentParsedScript", URLParser.getCommandFromUri("http: assertEquals("Player_currentParsedScript", URLParser.getCommandFromUri("http: assertEquals("Player_currentParsedScript", URLParser.getCommandFromUri("http: assertEquals("Player_currentParsedScript", URLParser.getCommandFromUri("http: }