}
public void setUp() throws Exception
{
super.setUp();
cache_ = new TreeCache();
initCaches(cache_);
// cache1_ = new TreeCache();
// initCaches(cache1_);
cache_.setUseMarshalling(true);
cache_.addTreeCacheListener((TreeCacheListener)listener_);
listener_.resetCounter();
cache_.startService();
// cache1_.startService();
// cache2 doesn't have eviction policy
cache2_ = new TreeCache();
PropertyConfigurator config = new PropertyConfigurator();
config.configure(cache2_, "META-INF/replSync-service.xml"); // read in generic local xml
cache2_.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
cache2_.setUseMarshalling(true);
cache2_.startService();