@CanIgnoreReturnValue
  public PathSubject withTarget(String targetPath) throws IOException {
    Path actualTarget = Files.readSymbolicLink(actual);
    if (!actualTarget.equals(toPath(targetPath))) {
      failWithoutActual(
          fact("expected link target", targetPath),
          fact("but target was", actualTarget),
          fact("for path", actual));
    }
    return this;
  }
Asserts that the path, which is a symbolic link, has the given path as a target.
jimfs/src/test/java/com/google/common/jimfs/PathSubject.java