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