UrlImpl implements Path { public String getPath() { return path; } UrlImpl(String path);  UrlImpl(Path url, String path);  UrlImpl(String path, char separator); protected  UrlImpl(char separator); char getPathSeparator(); void setPath(String path); String getPath(); boolean startsWith(String path); boolean endsWith(String path); boolean isPrefixOf(Path url); boolean isExtensionOf(Path url); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGetPath() { assertEquals(UrlUtils.trim(defaultUrlPath), defaultUrl.getPath()); assertEquals(PathUtils.trim(defaultFilePath), defaultPath.getPath()); assertEquals("/", new UrlImpl("/").getPath()); assertEquals("/", new UrlImpl(" assertFalse("/".equals(new UrlImpl("/test").getPath())); }