Buggy code:
public class EnableTransactionManagementIntegrationTests { @ Test public void repositoryIsNotTxProxy ( ) { } @ Test public void repositoryIsTxProxy_withDefaultTxManagerName ( ) { } @ Test public void repositoryIsTxProxy_withCustomTxManagerName ( ) { } @ Ignore @ Test public void repositoryIsTxProxy_withNonConventionalTxManagerName_fallsBackToByTypeLookup ( ) { } @ Test public void repositoryIsClassBasedTxProxy ( ) { } @ Test public void repositoryUsesAspectJAdviceMode ( ) { } @ Test public void implicitTxManager ( ) { } @ Test public void explicitTxManager ( ) { } @ Test public void apcEscalation ( ) { } @ Configuration @ EnableTransactionManagement @ ImportResource ( "org//springframework//transaction//annotation//enable-caching.xml" ) static class EnableTxAndCachingConfig { @ Bean public PlatformTransactionManager txManager ( ) { } @ Bean public EnableTransactionManagementIntegrationTests . FooRepository fooRepository ( ) { } @ Bean public CacheManager cacheManager ( ) { SimpleCacheManager mgr = new SimpleCacheManager ( ) ; ArrayList < Cache > caches = new ArrayList < Cache > ( ) ; <START_BUG> caches . add ( new ConcurrentMapCache ( ) ) ; <END_BUG> mgr . setCaches ( caches ) ; return mgr ; } } @ Configuration @ EnableTransactionManagement static class ImplicitTxManagerConfig { @ Bean public PlatformTransactionManager txManager ( ) { } @ Bean public EnableTransactionManagementIntegrationTests . FooRepository fooRepository ( ) { } } @ Configuration @ EnableTransactionManagement static class ExplicitTxManagerConfig implements TransactionManagementConfigurer { @ Bean public PlatformTransactionManager txManager1 ( ) { } @ Bean public PlatformTransactionManager txManager2 ( ) { } public PlatformTransactionManager annotationDrivenTransactionManager ( ) { } @ Bean public EnableTransactionManagementIntegrationTests . FooRepository fooRepository ( ) { } } private void assertTxProxying ( AnnotationConfigApplicationContext ctx ) { } @ Configuration @ EnableTransactionManagement static class DefaultTxManagerNameConfig { @ Bean PlatformTransactionManager transactionManager ( DataSource dataSource ) { } } @ Configuration @ EnableTransactionManagement static class CustomTxManagerNameConfig { @ Bean PlatformTransactionManager txManager ( DataSource dataSource ) { } } @ Configuration @ EnableTransactionManagement static class NonConventionalTxManagerNameConfig { @ Bean PlatformTransactionManager txManager ( DataSource dataSource ) { } } @ Configuration @ EnableTransactionManagement ( proxyTargetClass = true ) static class ProxyTargetClassTxConfig { @ Bean PlatformTransactionManager transactionManager ( DataSource dataSource ) { } } @ Configuration @ EnableTransactionManagement ( mode = AdviceMode . ASPECTJ ) static class AspectJTxConfig { @ Bean PlatformTransactionManager transactionManager ( DataSource dataSource ) { } } @ Configuration static class Config { @ Bean EnableTransactionManagementIntegrationTests . FooRepository fooRepository ( ) { } @ Bean DataSource dataSource ( ) { } } interface FooRepository { List < Object > findAll ( ) { } } @ Repository static class JdbcFooRepository implements EnableTransactionManagementIntegrationTests . FooRepository { public void setDataSource ( DataSource dataSource ) { } @ Transactional public List < Object > findAll ( ) { } } @ Repository static class DummyFooRepository implements EnableTransactionManagementIntegrationTests . FooRepository { @ Transactional public List < Object > findAll ( ) { } } }

Fix:
caches . add ( new ConcurrentMapCache ( "" ) ) ;