static boolean notificationsReceived = true;
@BeforeMethod
public void setUp() throws CloneNotSupportedException
{
CacheFactory cf = new DefaultCacheFactory();
c1 = cf.createCache(false);
c1.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
BuddyReplicationConfig brc = new BuddyReplicationConfig();
brc.setEnabled(true);
c1.getConfiguration().setBuddyReplicationConfig(brc);
c2 = cf.createCache(c1.getConfiguration().clone(), false);
c3 = cf.createCache(c1.getConfiguration().clone(), false);
c1.start();
c2.start();
c3.start();