### Question:
URIUtils { public static URL toURL(URI uri) throws MalformedURLException { Objects.requireNonNull(uri, "URI cannot be null"); try { return uri.toURL(); } catch(MalformedURLException e) { return tryFallback(uri, e); } } private  URIUtils(); static URL toURL(URI uri); static URI relativize(URI base, URI target); static URI resolve(URI base, URI target);  }### Answer:
@Test public void testToURL$existing() throws Exception { assertThat(URIUtils.toURL(existing),notNullValue()); }
@Test(expected=MalformedURLException.class) public void testToURL$nonLoaded() throws Exception { org.junit.Assume.assumeFalse(ProtocolHandlerConfigurator.isSupported("net")); URIUtils.toURL(custom); }
@Test public void testToURL$loaded() throws Exception { ProtocolHandlerConfigurator.addProvider(Handler.class); assertThat(URIUtils.toURL(custom),notNullValue()); }