void () { ChangeSet cs1 = addChangeSet(facade, createDirectory(r, "dir")); ChangeSet cs2 = addChangeSet(facade, createFile(r, "dir/FooBar")); ChangeSet cs3 = addChangeSet(facade, createFile(r, "dir/BarBaz")); assertEquals(array(cs2), getChangesFor("dir", "f")); assertEquals(array(cs2), getChangesFor("dir", "foo")); assertEquals(array(cs2), getChangesFor("dir", "FB")); assertEquals(array(cs3), getChangesFor("dir", "bar")); assertEquals(array(), getChangesFor("dir", "Baz")); assertEquals(array(cs3, cs2), getChangesFor("dir", "*Bar*")); }