RestUri implements Serializable { public RestUri withoutPath() { try { URI parsedUri = new URI(uri); return new RestUri(parsedUri.getScheme() + ": } catch (URISyntaxException e) { log.warn("Could not parse uri " + uri, e); } return new RestUri(uri); }  static RestUri from(URI uri); RestUri slash(String pathElement); RestUri append(String additional); RestUri withoutPath(); @Override String toString();  }
@Test public void testWithoutPathWithoutPort() throws Exception { RestUri restUri = new RestUri("http: assertEquals("http: }
@Test public void testWithoutPathNumericIp() throws Exception { RestUri restUri = new RestUri("http: assertEquals("http: }
@Test public void testWithoutPathSimple() throws Exception { RestUri restUri = new RestUri("http: assertEquals("http: }
@Test public void testWithoutPathWithPath() throws Exception { RestUri restUri = new RestUri("http: assertEquals("http: }