ProtocolRegistry { public void registerHost(String url) { try { xmlHost.add(getHost(url)); } catch (URISyntaxException e) { logger.warn("failed to register url {}", url); } }  void registerHost(String url); void unregisterHost(String url); boolean supportV1Json(String url); boolean supportXml(String url);  }
@Test public void registerHostWithURIExceptionTest() { protocolRegistry.registerHost("http: }