Paths { public static boolean equals(String p1, String p2) { return myIsCaseSensitive ? p1.equals(p2) : p1.equalsIgnoreCase(p2); }  static String getNameOf(String path); static String getParentOf(String path); static String appended(String path, String child); static String renamed(String path, String newName); static String withoutRootIfUnder(String path, String root); static boolean isParent(String parent, String path); static boolean equals(String p1, String p2); static void setCaseSensitive(boolean b); static boolean isCaseSensitive(); static void useSystemCaseSensitivity();  }
@Test public void testEquals() { assertTrue(Paths.equals("one", "one")); assertFalse(Paths.equals("one", "two")); Paths.setCaseSensitive(true); assertFalse(Paths.equals("one", "ONE")); Paths.setCaseSensitive(false); assertTrue(Paths.equals("one", "ONE")); }