public void testBackupForIsCorrect() {
cacheManager.getCache(); //start default cache
cacheManager.defineConfiguration("nycBackup", nycBackup.build());
cacheManager.getCache("nycBackup");
SitesConfiguration sitesConfig = cache("nycBackup").getCacheConfiguration().sites();
assertEquals(CacheContainer.DEFAULT_CACHE_NAME, sitesConfig.backupFor().remoteCache());
assertEquals("NYC", sitesConfig.backupFor().remoteSite());
sitesConfig.backupFor().isBackupFor("NYC", CacheContainer.DEFAULT_CACHE_NAME);
}
}