OASURLParser { public String getHost() { return host; } OASURLParser(String oasURL); String getAuthorityWithScheme(); String getHost(); String getJaxRSAppBase(); String getPort(); String getScheme(); String getServerBaseURL();  }
@Test public void testGetHost() throws MalformedURLException { OASURLParser oasURLParser = new OASURLParser(OPEN_API_URL); Assert.assertEquals("localhost", oasURLParser.getHost()); }