@Test
  public void testIsSameFile() throws IOException {
    Files.createDirectory(path("/foo"));
    Files.createSymbolicLink(path("/bar"), path("/foo"));
    Files.createFile(path("/bar/test"));

    assertThatPath("/foo").isSameFileAs("/foo");
    assertThatPath("/bar").isSameFileAs("/bar");
    assertThatPath("/foo/test").isSameFileAs("/foo/test");
    assertThatPath("/bar/test").isSameFileAs("/bar/test");
    assertThatPath("/foo").isNotSameFileAs("test");
    assertThatPath("/bar").isNotSameFileAs("/test");
    assertThatPath("/foo").isSameFileAs("/bar");
    assertThatPath("/foo/test").isSameFileAs("/bar/test");

    Files.createSymbolicLink(path("/baz"), path("bar")); // relative path
    assertThatPath("/baz").isSameFileAs("/foo");
    assertThatPath("/baz/test").isSameFileAs("/foo/test");
  }
");
    assertThatPath("foo/bar").doesNotMatch("glob:/**");
    assertThatPath("/foo/bar/baz/stuff").matches("glob:/foo/**");
    assertThatPath("/foo/bar/baz/stuff").matches("glob:/*
jimfs/src/test/java/com/google/common/jimfs/JimfsUnixLikeFileSystemTest.java