void () { createFile(root, "file"); DeleteChange c = delete(root, "file"); assertFalse(root.hasEntry("file")); c.revertOn(root, true); assertTrue(root.hasEntry("file")); Entry restored = root.findEntry("file"); assertNotSame(restored, c.getDeletedEntry()); c.getDeletedEntry().setName("fff"); assertEquals("file", restored.getName()); }