@Test
  public void testCopy_symbolicLinkToPath() throws IOException {
    byte[] bytes = preFilledBytes(128);
    Files.write(path("/test"), bytes);
    Files.createSymbolicLink(path("/link"), path("/test"));

    assertThatPath("/bar").doesNotExist();
    Files.copy(path("/link"), path("/bar"));
    assertThatPath("/bar", NOFOLLOW_LINKS).containsBytes(bytes);

    Files.delete(path("/bar"));

    Files.copy(path("/link"), path("/bar"), NOFOLLOW_LINKS);
    assertThatPath("/bar", NOFOLLOW_LINKS).isSymbolicLink().withTarget("/test");
    assertThatPath("/bar").isRegularFile();
    assertThatPath("/bar").containsBytes(bytes);

    Files.delete(path("/test"));
    assertThatPath("/bar", NOFOLLOW_LINKS).isSymbolicLink();
    assertThatPath("/bar").doesNotExist();
  }
");
    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