CacheableApplicationContextResolverImpl extends ApplicationContextResolverImpl implements InitializingBean, DisposableBean { @Override public void afterPropertiesSet() { if (!isCacheEnabled()) { throw new BeanCreationException(LOGGER.getLogMessage(LogId.EAL025061, BLOGIC_CONTEXT_CACHE_KEY)); } super.afterPropertiesSet(); }  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 testAfterPropertiesSet01() throws Exception { CacheableApplicationContextResolverImpl target = new CacheableApplicationContextResolverImpl(); try { target.afterPropertiesSet(); fail(); } catch (BeanCreationException e) { assertThat(e.getMessage(), is( "[EAL025061] Cannot create CacheableApplicationContextResolverImpl, because either cacheManager is not injected or Cache instance is not found by key:businessContext")); } }