}
}
public void testPropagatingTwoPhaseCommit() throws Exception {
List<Modification> list = new LinkedList<Modification>();
list.add(new Store(TestInternalCacheEntryFactory.create("k1", "v1")));
list.add(new Store(TestInternalCacheEntryFactory.create("k2", "v2", lifespan)));
list.add(new Store(TestInternalCacheEntryFactory.create("k3", "v3")));
list.add(new Remove("k3"));
list.add(new Clear());
list.add(new Store(TestInternalCacheEntryFactory.create("k4", "v4")));
list.add(new Store(TestInternalCacheEntryFactory.create("k5", "v5", lifespan)));
list.add(new Store(TestInternalCacheEntryFactory.create("k6", "v6")));
list.add(new Remove("k6"));
GlobalTransaction tx = gtf.newGlobalTransaction(null, false);
cs.prepare(list, tx, false);
CacheStore[] allStores = new CacheStore[]{cs, store1, store2}; // for iteration