FileBrowserService { public String separatorsToWindows(String path) { if (path == null || path.indexOf(UNIX_SEPARATOR) == -1) { return path; } return path.replace(UNIX_SEPARATOR, WINDOWS_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 testSeparatorsToWindows() throws Exception { String path = testling.separatorsToWindows("/Users/test/temp"); Assert.assertEquals(path, "\\Users\\test\\temp"); }