Configuration { private static URI stripDefaultPort(URI uri) { if ((uri.getPort() == HTTP_PORT && HTTP_SCHEME.equalsIgnoreCase(uri.getScheme())) || (uri.getPort() == HTTPS_PORT && HTTPS_SCHEME.equalsIgnoreCase(uri.getScheme()))) { try { uri = new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), -1, uri.getPath(), uri.getQuery(), uri.getFragment()); } catch (URISyntaxException e) { throw new WebApplicationException(e); } } return uri; } Configuration(); String getRestBaseUri(UriInfo uriInfo);  }
@Test public void testStripDefaultPort() throws URISyntaxException,SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InstantiationException, InvocationTargetException { String methodName = "stripDefaultPort"; assertEquals(new URI("http: assertEquals(new URI("http: assertEquals(new URI("https: assertEquals(new URI("https: assertEquals(new URI("HTTP: assertEquals(new URI("HTTP: assertEquals(new URI("http: assertEquals(new URI("https: }