NormalizedUrl extends Url { public static NormalizedUrl create(String url) throws MalformedURLException { return Url.create(url).normalize(); } NormalizedUrl(UrlMarker urlMarker); static NormalizedUrl create(String url); @Override String getHost(); @Override String getPath(); @Override byte[] getHostBytes();  }
@Test(dataProvider = "getFullUrls") public void testFullUrls(String host, String expectedHost) throws MalformedURLException { NormalizedUrl normalizedUrl = NormalizedUrl.create(host); Assert.assertEquals(normalizedUrl.getFullUrlWithoutFragment(), expectedHost); }