### Question:
AbstractDir implements DirInterface { public static String normalizePath(final String path) { return path.replace('\\', SEPARATORCHAR); }  static String normalizePath(final String path); static String pathFromURI(String path); @Override SessionInterface getSession(); @Override String validatePath(final String path); boolean isAbsolute(final String path); @Override boolean isPathInCurrentDir(final String path); @Override String getPwd(); @Override boolean changeParentDirectory(); @Override FileInterface setFile(final String path, final boolean append); @Override void checkIdentify(); @Override void clear(); @Override void initAfterIdentification(); @Override OptsMLSxInterface getOptsMLSx();  }### Answer:
@Test public void testNormalizePath() { assertEquals("single relative filename", "test.dat", AbstractDir.normalizePath("test.dat")); assertEquals("relative path (unix)", "foo/test.dat", AbstractDir.normalizePath("foo/test.dat")); assertEquals("absolute path (unix)", "/foo/test.dat", AbstractDir.normalizePath("/foo/test.dat")); assertEquals("absolute uri (unix)", "file: AbstractDir.normalizePath("file: assertEquals("relative uri (unix)", "file: AbstractDir.normalizePath("file: assertEquals("relative path (win)", "foo/test.dat", AbstractDir.normalizePath("foo\\test.dat")); assertEquals("absolute path (win)", "c:/foo/test.dat", AbstractDir.normalizePath("c:\\foo\\test.dat")); assertEquals("absolute uri (win)", "file: AbstractDir.normalizePath("file: assertEquals("relative uri (win)", "file: AbstractDir.normalizePath("file: assertEquals("UNC path (win)", " AbstractDir.normalizePath("\\\\server\\share\\test.dat")); assertEquals("UNC uri (win)", "file: AbstractDir.normalizePath("file: }