assert !remoteCache.containsKey("aKey2");
assert cache.isEmpty();
}
private void assertCacheContains(Cache cache, String key, String value) throws Exception {
Marshaller marshaller = new JBossMarshaller();
byte[] keyBytes = marshaller.objectToByteBuffer(key, 64);
byte[] valueBytes = marshaller.objectToByteBuffer(value, 64);
ByteArrayKey cacheKey = new ByteArrayKey(keyBytes);
CacheValue cacheValue = (CacheValue) cache.get(cacheKey);
if (value == null) {
assert cacheValue == null : "Expected null value but received: " + cacheValue;
} else {