### Question:
SpringContextResourceManager extends ResourceManager_impl implements
        ApplicationContextAware { public void setApplicationContext(ApplicationContext aApplicationContext) throws BeansException { context = aApplicationContext; }  @SuppressWarnings({ "rawtypes", "unchecked" }) @Override void initializeExternalResources(ResourceManagerConfiguration aConfiguration,
          String aQualifiedContextName, java.util.Map<String, Object> aAdditionalParams); void setApplicationContext(ApplicationContext aApplicationContext); void setAutowireEnabled(boolean aAutowireEnabled); boolean isAutowireEnabled();  }### Answer:
@Test public void test() throws Exception { ApplicationContext ctx = getApplicationContext(); SpringContextResourceManager resMgr = new SpringContextResourceManager(); resMgr.setApplicationContext(ctx); AnalysisEngineDescription desc = createEngineDescription(MyAnalysisEngine.class); bindResourceOnceWithoutNested(desc, "injectedBean", "springBean"); AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(desc, resMgr, null); ae.process(ae.newJCas()); }