ProtocolRegistry { public boolean supportV1Json(String url) { try { return !xmlHost.contains(getHost(url)); } catch (URISyntaxException e) { return false; } }  void registerHost(String url); void unregisterHost(String url); boolean supportV1Json(String url); boolean supportXml(String url);  }
@Test public void supportV1JsonWithURIExceptionTest() throws URISyntaxException { assertEquals(false, protocolRegistry.supportV1Json("http: }