@Test
  public void testPaths_toUri() {
    assertThat(path("/").toUri()).isEqualTo(URI.create("jimfs://unix/"));
    assertThat(path("/foo").toUri()).isEqualTo(URI.create("jimfs://unix/foo"));
    assertThat(path("/foo/bar").toUri()).isEqualTo(URI.create("jimfs://unix/foo/bar"));
    assertThat(path("foo").toUri()).isEqualTo(URI.create("jimfs://unix/work/foo"));
    assertThat(path("foo/bar").toUri()).isEqualTo(URI.create("jimfs://unix/work/foo/bar"));
    assertThat(path("").toUri()).isEqualTo(URI.create("jimfs://unix/work/"));
    assertThat(path("./../.").toUri()).isEqualTo(URI.create("jimfs://unix/work/./.././"));
  }
Tests an in-memory file system through the public APIs in {@link Files}, etc. This also acts as
the tests for {@code FileSystemView}, as each public API method is (mostly) implemented by a
method in {@code FileSystemView}.

<p>These tests uses a Unix-like file system, but most of what they test applies to any file
system configuration.

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