void () { createFile(root, "dir1/dir2/file"); StructuralChange c = rename(root, "dir1/dir2", "new dir"); assertFalse(root.hasEntry("dir1/dir2/file")); assertTrue(root.hasEntry("dir1/new dir/file")); c.revertOn(root, true); assertTrue(root.hasEntry("dir1/dir2")); assertTrue(root.hasEntry("dir1/dir2/file")); assertFalse(root.hasEntry("dir1/new dir")); }