assert cl.contains("k5");
}
public void testLoadAll() throws PersistenceException {
cl.write(new MarshalledEntryImpl("k1", wrap("k1", "v1"), null, getMarshaller()));
cl.write(new MarshalledEntryImpl("k2", wrap("k2", "v2"), null, getMarshaller()));
cl.write(new MarshalledEntryImpl("k3", wrap("k3", "v3"), null, getMarshaller()));
cl.write(new MarshalledEntryImpl("k4", wrap("k4", "v4"), null, getMarshaller()));
cl.write(new MarshalledEntryImpl("k5", wrap("k5", "v5"), null, getMarshaller()));
Set<MarshalledEntry> s = TestingUtil.allEntries(cl);
assert s.size() == 5 : "Expected 5 keys, was " + s;
s = allEntries(cl, new CollectionKeyFilter(emptySet()));