protected void setUp() throws Exception
{
// force a tear down if the test runner didn't run one before (happens in IDEA)
if (cache1 != null || cache2 != null) tearDown();
cache1 = new TreeCache("test", null, 1000);
cache1.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
cache1.setNodeLockingScheme( nodeLockingScheme );
cache1.setCacheMode( cacheMode );
cache1.startService();
cache2 = new TreeCache("test", null, 1000);
cache2.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
cache2.setNodeLockingScheme(nodeLockingScheme);
cache2.setCacheMode(cacheMode);
cache2.startService();