XUrl { public static String stripUrlParameters(String url) { Preconditions.checkNotNull(url); int paramStartIndex = url.indexOf("?"); if (paramStartIndex == -1) { return url; } else { return url.substring(0, paramStartIndex); } }  static String host(String url); static int port(String url); static String domainChecked(String url); static String path(String url); static String stripUrlParameters(String url); static String stripUrlParameters(URL url); static String rawQueryParameters(String url); static String addProtocol(String url); static Map<String, List<String>> decodeQueryString(String url); static InetSocketAddress inetSocket(String url);  }
@Test void stripUrlParameters() { assertEquals("https: }