### Question:
Entry { public boolean pathEquals(String path) { return Paths.equals(getPath(), path); } Entry(String name);  Entry(DataInput in); void write(DataOutput out); String getName(); String getPath(); boolean nameEquals(String name); boolean pathEquals(String path); abstract long getTimestamp(); boolean isReadOnly(); void setReadOnly(boolean isReadOnly); boolean isOutdated(long timestamp); Content getContent(); boolean hasUnavailableContent(); boolean hasUnavailableContent(List<Entry> entriesWithUnavailableContent); Entry getParent(); boolean isDirectory(); void addChild(Entry child); void removeChild(Entry child); List<Entry> getChildren(); Entry findChild(String name); boolean hasEntry(String path); Entry getEntry(String path); Entry findEntry(String relativePath); abstract Entry copy(); void setName(String newName); void setContent(Content newContent, long timestamp); static List<Difference> getDifferencesBetween(Entry left, Entry right); @Override String toString();  }### Answer:
@Test public void testPathEquality() { 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")); }