@Override
  public int compareTo(Path other) {
    // documented to throw CCE if other is associated with a different FileSystemProvider
    JimfsPath otherPath = (JimfsPath) other;
    Comparator<JimfsPath> comparator =
        Comparator.comparing((JimfsPath p) -> p.getJimfsFileSystem().getUri())
            .thenComparing(pathService);
    return comparator.compare(this, otherPath);
  }
Resolves the given name against this path. The name is assumed not to be a root name.
jimfs/src/main/java/com/google/common/jimfs/JimfsPath.java