@Test
  public void testMove() throws IOException {
    byte[] bytes = preFilledBytes(100);
    Files.write(path("/foo"), bytes);

    Object fooKey = getFileKey("/foo");

    Files.move(path("/foo"), path("/bar"));
    assertThatPath("/foo").doesNotExist();
    assertThatPath("/bar").containsBytes(bytes).and().attribute("fileKey").is(fooKey);

    Files.createDirectory(path("/foo"));
    Files.move(path("/bar"), path("/foo/bar"));

    assertThatPath("/bar").doesNotExist();
    assertThatPath("/foo/bar").isRegularFile();

    Files.move(path("/foo"), path("/baz"));
    assertThatPath("/foo").doesNotExist();
    assertThatPath("/baz").isDirectory();
    assertThatPath("/baz/bar").isRegularFile();
  }
");
    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