void () { createFile(root, "dir1/dir2/file", "content", -1, false); StructuralChange c = delete(root, "dir1"); assertFalse(root.hasEntry("dir1")); c.revertOn(root, true); assertTrue(root.hasEntry("dir1")); assertTrue(root.hasEntry("dir1/dir2")); assertTrue(root.hasEntry("dir1/dir2/file")); assertContent("content", root.getEntry("dir1/dir2/file").getContent()); }