void () { Entry e = new MyEntry() { @Override public String getPath() { return "path"; } }; assertTrue(e.pathEquals("path")); assertFalse(e.pathEquals("bla-bla-bla")); Paths.setCaseSensitive(true); assertFalse(e.pathEquals("PATH")); Paths.setCaseSensitive(false); assertTrue(e.pathEquals("PATH")); }