cache1.put(k(m, 1), v(m, 1));
cache1.put(k(m, 2), v(m, 2));
cache1.put(k(m, 3), v(m, 3));
cache2.put(k(m, 4), v(m, 4));
cache2.put(k(m, 5), v(m, 5));
DummyInMemoryCacheStore store1 = getDummyStore(cache1);
DataContainer data1 = getDataContainer(cache1);
DummyInMemoryCacheStore store2 = getDummyStore(cache2);
DataContainer data2 = getDataContainer(cache2);
assert !store1.isEmpty();
assert 5 == data1.size();
assert !store2.isEmpty();
assert 5 == data2.size();
manager1.removeCache("cache");
assert !manager1.cacheExists("cache");
assert !manager2.cacheExists("cache");
assert null == manager1.getCache("cache", false);
assert null == manager2.getCache("cache", false);
assert store1.isEmpty();
assert 0 == data1.size();
assert store2.isEmpty();
assert 0 == data2.size();
}
});
}