FileEntry extends Entry { @Override protected void collectDeletedDifferences(List<Difference> result) { result.add(new Difference(true, this, null)); } FileEntry(int id, String name, Content content, long timestamp, boolean isReadOnly);  FileEntry(Stream s); @Override void write(Stream s); @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 changeContent(Content newContent, long newTimestamp); @Override void collectDifferencesWith(Entry e, List<Difference> result);  }
@Test public void testAsDeletedDifference() { FileEntry e = new FileEntry(-1, null, null, -1, false); ArrayList<Difference> dd = new ArrayList<Difference>(); e.collectDeletedDifferences(dd); assertDifference(dd, e, null); }