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