ConfigurationBuilder builder = new ConfigurationBuilder();
withCacheManager(new CacheManagerCallable(
TestCacheManagerFactory.createCacheManager(builder)) {
@Override
public void call() {
AbstractLockingInterceptor lockingInterceptor = TestingUtil.findInterceptor(
cm.getCache(), AbstractLockingInterceptor.class);
assertTrue(lockingInterceptor instanceof NonTransactionalLockingInterceptor);
}
});
}