### Question:
FileEntry extends Entry { @Override public FileEntry copy() { return new FileEntry(myName, myContent, myTimestamp, isReadOnly); } FileEntry(String name, Content content, long timestamp, boolean isReadOnly);  FileEntry(DataInput in, boolean dummy /* to distinguish from general constructor*/); @Override void write(DataOutput out); @Override long getTimestamp(); @Override boolean isReadOnly(); @Override void setReadOnly(boolean isReadOnly); @Override Content getContent(); @Override boolean hasUnavailableContent(List<Entry> entriesWithUnavailableContent); @Override FileEntry copy(); @Override void setContent(Content newContent, long newTimestamp); @Override void collectDifferencesWith(Entry e, List<Difference> result);  }### Answer:
@Test public void testDoesNotCopyParent() { DirectoryEntry parent = new DirectoryEntry(null); FileEntry file = new FileEntry(null, null, -1, false); parent.addChild(file); Entry copy = file.copy(); assertNull(copy.getParent()); }