public void testEntryWrapping() throws Exception { remoteSourceCache.put("k1", "v1"); remoteSourceCache.put("k2", "v2"); ByteArrayKey key = new ByteArrayKey(marshaller.objectToByteBuffer("k1")); CacheValue cv1 = targetCache.get(key); assertEquals(marshaller.objectToByteBuffer("v1"), cv1.data()); String v1 = remoteTargetCache.get("k1"); assertEquals("v1", v1); String v2 = remoteTargetCache.get("k2"); assertEquals("v2", v2); }