public void testCluster() throws Exception
{
CacheConfiguration config = new CacheConfiguration();
CacheFactory factoryA = config.getCacheFactory("clusterA");
CacheFactory factoryB = config.getCacheFactory("clusterB");
Cache oneA = factoryA.newInstance("one", 1000, 1000);
Cache oneB = factoryB.newInstance("one", 1000, 1000);
for (int i = 0; i < 1000; i++)
{
oneA.addObject("key" + i, "value");
oneB.addObject("key" + i, "value");