### Question:
FileSystemUtils { public static String resolveLatest(String path) throws IOException { return resolveLatest(path, new Configuration()); } private  FileSystemUtils(); static FileSystem getFileSystem(String filePath); static FileSystem getFileSystem(String filePath, Configuration conf); static FileSystem getLocalFileSystem(); static String resolveLatest(String path); static String resolveLatest(String path, Configuration conf);  }### Answer:
@Test public void testResolveLatest() throws IOException, URISyntaxException { String resourcePath = "file: String filePath = FileSystemUtils.resolveLatest(resourcePath + "/2018/11/02.dat"); Assert.assertTrue( FileSystemUtils.resolveLatest(resourcePath + "/2018/11/02.dat").endsWith("/root/2018/11/02.dat")); Assert.assertTrue( FileSystemUtils.resolveLatest(resourcePath + "/#LATEST/11/#LATEST").endsWith("/root/2019/11/02.dat")); Assert.assertTrue( FileSystemUtils.resolveLatest(resourcePath + "/#LATEST/#LATEST/#LATEST").endsWith("/root/2019/12/02.dat")); Assert.assertTrue( FileSystemUtils.resolveLatest(resourcePath + "/#LATEST/#LATEST").endsWith("/root/2019/13.dat")); }