return TestCacheManagerFactory.createCacheManager(builder);
}
public void testOriginalReferenceSafety() {
final Integer k = 1;
Person person = new Person("Mr Infinispan");
cache().put(k, person);
assertEquals(person, cache.get(k));
// Change referenced object
person.setName("Ms Hibernate");
// If defensive copies are working as expected,
// it should be same as before
assertEquals(new Person("Mr Infinispan"), cache.get(k));
}