public void gather_changes()
{
Object value1 = new Object();
Object value2 = new Object();
PersistentFieldStrategy strat1 = newPersistentFieldStrategy();
Collection<PersistentFieldChange> changes1 = newList();
changes1.add(new PersistentFieldChangeImpl("component", "field1", value1));
PersistentFieldStrategy strat2 = newPersistentFieldStrategy();
Collection<PersistentFieldChange> changes2 = newList();
changes2.add(new PersistentFieldChangeImpl("component", "field2", value2));
// We don't know the exact order the strategies will be ordered in the map,
// so we can't guarantee the order the strategies will be invoked.
getMocksControl().checkOrder(false);
expect(strat1.gatherFieldChanges("foo.Bar")).andReturn(changes1);
expect(strat2.gatherFieldChanges("foo.Bar")).andReturn(changes2);
replay();
Map<String, PersistentFieldStrategy> strategies = newMap();