void () { ChangeSet cs1 = addChangeSet(facade, createDirectory(r, "dir")); ChangeSet cs2 = addChangeSet(facade, createFile(r, "dir/file")); ChangeSet cs3 = addChangeSet(facade, delete(r, "dir")); ChangeSet cs4 = addChangeSet(facade, createDirectory(r, "dir")); ChangeSet cs5 = addChangeSet(facade, createFile(r, "dir/file")); assertEquals(array(cs5, cs4, cs3, cs2, cs1), getChangesFor("dir")); assertEquals(array(cs5, cs3, cs2), getChangesFor("dir/file")); }