assertSame(url, resource.getURL());
}
public void testGetRelativeResource() throws Exception {
URL url = new URL("http://cayenne.apache.org");
URLResource resource = new URLResource(url);
Resource relativeResource = resource.getRelativeResource("/docs");
assertNotNull(relativeResource);
assertEquals("http://cayenne.apache.org/docs", relativeResource
.getURL()
.toExternalForm());