assertEquals("s1", cm.getGlobalConfiguration().getSiteId());
assertEquals("r1", cm.getGlobalConfiguration().getRackId());
assertEquals("m1", cm.getGlobalConfiguration().getMachineId());
// test default cache
Cache c = cm.getCache();
assert c.getConfiguration().getConcurrencyLevel() == 100;
assert c.getConfiguration().getLockAcquisitionTimeout() == 1000;
assert !c.getConfiguration().isTransactionalCache();
assertEquals(c.getConfiguration().getTransactionMode(), TransactionMode.NON_TRANSACTIONAL);
assert TestingUtil.extractComponent(c, Transport.class) != null : "This should not be null, since a shared transport should be present";
// test the "transactional" cache
c = cm.getCache("transactional");
assert c.getConfiguration().isTransactionalCache();
assert c.getConfiguration().getConcurrencyLevel() == 100;
assert c.getConfiguration().getLockAcquisitionTimeout() == 1000;
assert TestingUtil.extractComponent(c, TransactionManager.class) != null;
assert TestingUtil.extractComponent(c, Transport.class) != null : "This should not be null, since a shared transport should be present";
// test the "replicated" cache
c = cm.getCache("syncRepl");
assert c.getConfiguration().getConcurrencyLevel() == 100;
assert c.getConfiguration().getLockAcquisitionTimeout() == 1000;
assertEquals(c.getConfiguration().getTransactionMode(), TransactionMode.NON_TRANSACTIONAL);
assert TestingUtil.extractComponent(c, Transport.class) != null : "This should not be null, since a shared transport should be present";
// test the "txSyncRepl" cache
c = cm.getCache("txSyncRepl");
assert c.getConfiguration().getConcurrencyLevel() == 100;
assert c.getConfiguration().getLockAcquisitionTimeout() == 1000;
assert TestingUtil.extractComponent(c, TransactionManager.class) != null;
assert TestingUtil.extractComponent(c, Transport.class) != null : "This should not be null, since a shared transport should be present";
}