@Test
  public void testDelete_directory_cantDeleteWorkingDirectoryByRelativePath() throws IOException {
    try {
      Files.delete(path(""));
      fail();
    } catch (FileSystemException expected) {
      assertThat(expected.getFile()).isEqualTo("");
    }

    try {
      Files.delete(path("."));
      fail();
    } catch (FileSystemException expected) {
      assertThat(expected.getFile()).isEqualTo(".");
    }

    try {
      Files.delete(path("../../work"));
      fail();
    } catch (FileSystemException expected) {
      assertThat(expected.getFile()).isEqualTo("../../work");
    }

    try {
      Files.delete(path("./../work/.././../work/."));
      fail();
    } catch (FileSystemException expected) {
      assertThat(expected.getFile()).isEqualTo("./../work/.././../work/.");
    }
  }
");
    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