@Test
  public void testNullPointerExceptions() throws NoSuchMethodException {
    NullPointerTester tester =
        new NullPointerTester().ignore(JimfsPath.class.getMethod("toRealPath", LinkOption[].class));
    // ignore toRealPath because the pathService creates fake paths that do not have a
    // JimfsFileSystem instance, causing it to fail since it needs to access the file system

    tester.testAllPublicInstanceMethods(pathService.parsePath("/"));
    tester.testAllPublicInstanceMethods(pathService.parsePath(""));
    tester.testAllPublicInstanceMethods(pathService.parsePath("/foo"));
    tester.testAllPublicInstanceMethods(pathService.parsePath("/foo/bar/baz"));
    tester.testAllPublicInstanceMethods(pathService.parsePath("foo"));
    tester.testAllPublicInstanceMethods(pathService.parsePath("foo/bar"));
    tester.testAllPublicInstanceMethods(pathService.parsePath("foo/bar/baz"));
    tester.testAllPublicInstanceMethods(pathService.parsePath("."));
    tester.testAllPublicInstanceMethods(pathService.parsePath(".."));
  }
Tests for {@link JimfsPath}.

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