public void testModificationsOnSameCustomKey() { Cache<InvalidatedPojo, String> cache1 = cache(0, "invlSync"); Cache<InvalidatedPojo, String> cache2 = cache(1, "invlSync"); InvalidatedPojo key = new InvalidatedPojo(); cache2.put(key, "1"); cache1.put(key, "2"); // Marshalling is done eagerly now, so no need for extra serialization checks assertSerializationCounts(2, 0); cache1.put(key, "3"); // +2 carried on here. assertSerializationCounts(3, 0); }