OASURLParser { public String getAuthorityWithScheme() { StringBuilder sb = new StringBuilder(); sb.append(scheme); sb.append(": sb.append(host); sb.append(":"); sb.append(port); return sb.toString(); } OASURLParser(String oasURL); String getAuthorityWithScheme(); String getHost(); String getJaxRSAppBase(); String getPort(); String getScheme(); String getServerBaseURL();  }
@Test public void testGetAuthorityWithScheme() throws MalformedURLException { OASURLParser oasURLParser = new OASURLParser(OPEN_API_URL); Assert.assertEquals( "http: }