assert "v2".equals(cache.remove("k2"));
}
public void testLoadingToMemory() throws PersistenceException {
assertNotInCacheAndStore("k1", "k2");
store.write(new MarshalledEntryImpl("k1", "v1", null, sm));
store.write(new MarshalledEntryImpl("k2", "v2", null, sm));
assertInStoreNotInCache("k1", "k2");
assert "v1".equals(cache.get("k1"));
assert "v2".equals(cache.get("k2"));