### Question:
PathUtil { public static String toString(Path path) { return path == null ? null : path.toUri().toString(); } private  PathUtil(); static String getRelativePath(Path sourceRootPath, Path childPath); static String toString(Path path); static String toBucketName(URI uri); static String toBucketKey(URI uri); static boolean isFile(URI path);  }### Answer:
@Test public void nullPathToString() { assertThat(PathUtil.toString(null), is(nullValue())); }
@Test public void pathToString() { assertThat(PathUtil.toString(new Path("/foo/bar/")), is("/foo/bar")); assertThat(PathUtil.toString(new Path("s3: }