CacheableApplicationContextResolverImpl extends ApplicationContextResolverImpl implements InitializingBean, DisposableBean { protected boolean isCacheEnabled() { if (this.cacheManager == null || !this.cacheManager.getCacheNames() .contains(BLOGIC_CONTEXT_CACHE_KEY)) { return false; } Cache cache = this.cacheManager.getCache(BLOGIC_CONTEXT_CACHE_KEY); if (cache == null) { return false; } return cache.getNativeCache() instanceof Map; }  void setCacheManager(CacheManager cacheManager); @Override ApplicationContext resolveApplicationContext(
            BatchJobData batchJobData); @Override void closeApplicationContext(ApplicationContext applicationContext); @Override void afterPropertiesSet(); @Override void destroy(); static final String BLOGIC_CONTEXT_CACHE_KEY; }
@Test public void testIsCacheEnabled01() throws Exception { CacheableApplicationContextResolverImpl target = new CacheableApplicationContextResolverImpl(); assertThat(target.isCacheEnabled(), is(false)); }