assertEquals(13, c.expiration().maxIdle());
assertTrue(c.clustering().stateTransfer().fetchInMemoryState());
assertEquals(60500, c.clustering().stateTransfer().timeout());
assertEquals(10500, c.clustering().stateTransfer().chunkSize());
// Back up cross-site configuration
BackupConfiguration backup = c.sites().allBackups().get(0);
assertEquals("NYC", backup.site());
assertEquals(BackupFailurePolicy.WARN, backup.backupFailurePolicy());
assertEquals(BackupConfiguration.BackupStrategy.SYNC, backup.strategy());
assertEquals(12500, backup.replicationTimeout());
assertFalse(backup.enabled());
backup = c.sites().allBackups().get(1);
assertEquals("SFO", backup.site());
assertEquals(BackupFailurePolicy.IGNORE, backup.backupFailurePolicy());
assertEquals(BackupConfiguration.BackupStrategy.ASYNC, backup.strategy());
assertEquals(13000, backup.replicationTimeout());
assertTrue(backup.enabled());
backup = c.sites().allBackups().get(2);
assertEquals("LON", backup.site());
assertEquals(BackupFailurePolicy.FAIL, backup.backupFailurePolicy());
assertEquals(BackupConfiguration.BackupStrategy.SYNC, backup.strategy());
assertEquals(13500, backup.replicationTimeout());
assertTrue(backup.enabled());
assertEquals(3, backup.takeOffline().afterFailures());
assertEquals(10000, backup.takeOffline().minTimeToWait());
assertEquals("users", c.sites().backupFor().remoteCache());
assertEquals("LON", c.sites().backupFor().remoteSite());
c = cm.getCache("capedwarf-data").getCacheConfiguration();
assertEquals(CacheMode.REPL_ASYNC, c.clustering().cacheMode());