FileUtils { static String correctPath(boolean isWindows, String path) { if (isWindows) { path = path.replace('/', '\\'); } return path; }  static String expandUserHome(final String path);  }
@Test public void correctPath_windows() { assertEquals("\\foo\\bar", FileUtils.correctPath(true, "/foo/bar")); }
@Test public void correctPath_notWindows() { assertEquals("/foo/bar", FileUtils.correctPath(false, "/foo/bar")); }