@Test
  public void testCreateFile_relative() throws IOException {
    Files.createFile(path("test.txt"));

    assertThatPath("/work/test.txt", NOFOLLOW_LINKS).isRegularFile();
    assertThatPath("test.txt", NOFOLLOW_LINKS).isRegularFile();
    assertThatPath("/work").hasChildren("test.txt");
    assertThatPath("test.txt").isSameFileAs("/work/test.txt");

    Files.createDirectory(path("foo"));
    Files.createFile(path("foo/test.txt"));

    assertThatPath("/work/foo/test.txt", NOFOLLOW_LINKS).isRegularFile();
    assertThatPath("foo/test.txt", NOFOLLOW_LINKS).isRegularFile();
    assertThatPath("/work/foo").hasChildren("test.txt");
    assertThatPath("foo").hasChildren("test.txt");
    assertThatPath("foo/test.txt").isSameFileAs("/work/foo/test.txt");
  }
");
    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