### Question:
URLResource implements Resource { public URL getURL() { return url; } URLResource(URL url); Resource getRelativeResource(String relativePath); URL getURL(); @Override String toString();  }### Answer:
@Test public void testURL() throws Exception { URL url = new URL("http: URLResource resource = new URLResource(url); assertSame(url, resource.getURL()); }