### Question:
FilesUtils { public static String convertToWindowsPath(String pathString) { String pathSlash = getFilePathSlash(pathString); if (pathString.startsWith(pathSlash)) { if (pathString.length() > 3) { char letter = pathString.charAt(1); char colon = pathString.charAt(2); if (Character.isLetter(letter) && ':' == colon) { pathString = pathString.substring(1); } } } return pathString.replace("/", "\\"); } private  FilesUtils(); static String getCachePathSetting(); static void setCachePathSetting(String cachePathSetting); static void resetDeployPath(); static String normalizePath(String pathString); static Path getDeployedPath(Path path); static void saveToFile(InputStream in, Path outFile); static void saveToFile(String content, Path outFile); static int getOffsetAfterScheme(String uri); static String getFilePathSlash(String text); static String convertToWindowsPath(String pathString); static boolean pathEndsWithFile(String pathString); static boolean isIncludedInDeployedPath(Path resourceCachePath); static String removeFileScheme(String fileURI); static Path getPath(String uri); static String encodePath(String path); static final String FILE_SCHEME; static final String LEMMINX_WORKDIR_KEY; static Supplier<Path> DEPLOYED_BASE_PATH; }### Answer:
@Test public void cleanPathForWindows() { assertEquals("C:\\Users\\Home\\Documents", FilesUtils.convertToWindowsPath("\\C:\\Users\\Home\\Documents")); assertEquals("C:\\Users\\Home\\Documents\\", FilesUtils.convertToWindowsPath("\\C:\\Users\\Home\\Documents\\")); assertEquals("C:\\Users\\Home\\Documents\\", FilesUtils.convertToWindowsPath("/C:/Users/Home/Documents/")); assertEquals("C:\\Users\\Home\\Documents\\", FilesUtils.convertToWindowsPath("C:/Users/Home/Documents/")); }