LocalResourceId implements ResourceId { @Override public boolean equals(@Nullable Object obj) { if (!(obj instanceof LocalResourceId)) { return false; } LocalResourceId other = (LocalResourceId) obj; return this.pathString.equals(other.pathString); } private  LocalResourceId(Path path, boolean isDirectory); @Override LocalResourceId resolve(String other, ResolveOptions resolveOptions); @Override LocalResourceId getCurrentDirectory(); @Override @Nullable String getFilename(); @Override String getScheme(); @Override boolean isDirectory(); @Override String toString(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }
@Test public void testEquals() { assumeFalse(SystemUtils.IS_OS_WINDOWS); assertEquals(toResourceIdentifier("/root/tmp/"), toResourceIdentifier("/root/tmp/")); assertNotEquals(toResourceIdentifier("/root/tmp"), toResourceIdentifier("/root/tmp/")); }