@Test
  public void testPaths_startsWith_endsWith() {
    assertThat(path("/foo/bar").startsWith("/")).isTrue();
    assertThat(path("/foo/bar").startsWith("/foo")).isTrue();
    assertThat(path("/foo/bar").startsWith("/foo/bar")).isTrue();
    assertThat(path("/foo/bar").endsWith("bar")).isTrue();
    assertThat(path("/foo/bar").endsWith("foo/bar")).isTrue();
    assertThat(path("/foo/bar").endsWith("/foo/bar")).isTrue();
    assertThat(path("/foo/bar").endsWith("/foo")).isFalse();
    assertThat(path("/foo/bar").startsWith("foo/bar")).isFalse();
  }
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