@Test(expectedExceptions = CacheConfigurationException.class,
expectedExceptionsMessageRegExp = "ISPN(\\d)*: A cache configured with invocation batching can't have recovery enabled")
public void testInvalidBatchingAndTransactionConfiguration() {
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.invocationBatching().enable();
builder.transaction().transactionMode(TransactionMode.TRANSACTIONAL);
builder.transaction().useSynchronization(false);
builder.transaction().recovery().enable();
withCacheManager(new CacheManagerCallable(
TestCacheManagerFactory.createCacheManager(builder)) {