@Test
  public void testPathLookups() throws IOException {
    assertThatPath("/").isSameFileAs("/");
    assertThatPath("/..").isSameFileAs("/");
    assertThatPath("/../../..").isSameFileAs("/");
    assertThatPath("../../../..").isSameFileAs("/");
    assertThatPath("").isSameFileAs("/work");

    Files.createDirectories(path("/foo/bar/baz"));
    Files.createSymbolicLink(path("/foo/bar/link1"), path("../link2"));
    Files.createSymbolicLink(path("/foo/link2"), path("/"));

    assertThatPath("/foo/bar/link1/foo/bar/link1/foo").isSameFileAs("/foo");
  }
");
    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