public class ClusteredPessimisticLockingCacheTest extends ClusteredCacheTest {
@Override
protected void createCacheManagers() throws Throwable {
ConfigurationBuilder cacheCfg = getDefaultClusteredCacheConfig(CacheMode.REPL_SYNC, transactionsEnabled());
cacheCfg.transaction().lockingMode(LockingMode.PESSIMISTIC);
cacheCfg.indexing()
.index(Index.ALL)
.addProperty("default.directory_provider", "ram")
.addProperty("error_handler", "org.infinispan.query.helper.StaticTestingErrorHandler")
.addProperty("lucene_version", "LUCENE_CURRENT");