FileBrowserService { public String separatorsToUnix(String path) { if (path == null || path.indexOf(WINDOWS_SEPARATOR) == -1) { return path; } return path.replace(WINDOWS_SEPARATOR, UNIX_SEPARATOR); }  String[] getFolders(File directory); File findFileInPath(File directory, String filename, boolean recursive); String decodeDirectoryUrl(String url, String rootDirectory); String separatorsToSystem(String path); String separatorsToWindows(String path); String separatorsToUnix(String path);  }
@Test public void testSeparatorsToUnix() throws Exception { String path = testling.separatorsToUnix("C:\\windows\\system\\test"); Assert.assertEquals(path, "C:/windows/system/test"); }