ResourcePath { @Override public String toString() { return (prefix != null ? prefix + SEPARATOR : "") + path; } ResourcePath(String str);  ResourcePath(String prefix, String path); String getPrefix(); String getPath(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testNoPrefix() throws Exception { assertEquals(new ResourcePath("/long/path").toString(), "/long/path"); }