@Test
  public void readDirectoryContents() throws IOException {
    Files.createDirectory(path);
    Files.createFile(path.resolve("a.txt"));
    Files.createFile(path.resolve("b.txt"));
    Files.createDirectory(path.resolve("c"));

    URL url = path.toUri().toURL();
    assertThat(Resources.asCharSource(url, UTF_8).read()).isEqualTo("a.txt\nb.txt\nc\n");
  }
Tests that {@link URL} instances can be created and used from jimfs URIs.

@author Colin Decker
jimfs/src/test/java/com/google/common/jimfs/UrlTest.java