@Test
  public void testCreateDirectory_withInitialAttributes() throws IOException {
    FileAttribute<Set<PosixFilePermission>> permissions =
        PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwxrwxrwx"));

    Files.createDirectory(path("/foo"), permissions);

    assertThatPath("/foo")
        .isDirectory()
        .and()
        .attribute("posix:permissions")
        .is(permissions.value());

    Files.createDirectory(path("/normal"));

    assertThatPath("/normal")
        .isDirectory()
        .and()
        .attribute("posix:permissions")
        .isNot(permissions.value());
  }
");
    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