public void testTransactionalReplication() throws Exception
{
// outside of tx scope
cache.put("/a", "k", "v");
ReplicationQueueNotifier replicationQueueNotifier = new ReplicationQueueNotifier(cache);
replicationQueueNotifier.waitUntillAllReplicated(200);
assert cache2.get("/a", "k").equals("v");
// now, a transactional call
txManager.begin();
cache2.put("/a", "k", "v2");
txManager.commit();
ReplicationQueueNotifier replicationQueueNotifier2 = new ReplicationQueueNotifier(cache2);
replicationQueueNotifier2.waitUntillAllReplicated(200);
assert cache.get("/a", "k").equals("v2");
}