@Override
  public boolean equals(@Nullable Object obj) {
    if (!(obj instanceof LocalResourceId)) {
      return false;
    }
    LocalResourceId other = (LocalResourceId) obj;
    return this.pathString.equals(other.pathString);
  }
@Test
  public void testEquals() {
    // TODO: Java core test failing on windows, https://github.com/apache/beam/issues/20475
    assumeFalse(SystemUtils.IS_OS_WINDOWS);
    assertEquals(toResourceIdentifier("/root/tmp/"), toResourceIdentifier("/root/tmp/"));

    assertNotEquals(toResourceIdentifier("/root/tmp"), toResourceIdentifier("/root/tmp/"));
  }