### Question:
PathData { public String toString() { return (string != null) ? string : path.toString(); } PathData(String pathString, Configuration conf);  PathData(File localPath, Configuration conf);  PathData(FileSystem fs, Path path, FileStatus stat);  PathData(FileSystem fs, Path path);  PathData(FileSystem fs, String pathString, FileStatus stat);  PathData(FileSystem fs, FileStatus stat); FileStatus refreshStatus(); PathData[] getDirectoryContents(); PathData getPathDataForChild(PathData child); static PathData[] expandAsGlob(String pattern, Configuration conf); String toString(); final Path path; public FileStatus stat; final FileSystem fs; public boolean exists; }### Answer:
@Test public void testWithStringAndConfForBuggyPath() throws Exception { dirString = "file: dir = new Path(dirString); item = new PathData(dirString, conf); assertEquals("file:/tmp", dir.toString()); checkPathData(); }