DataBridgeApp { protected ApplicationContext createApplicationContext() { AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(); ApplicationContextHolder.setApplicationContext(applicationContext); applicationContext.register(CoreSpringModuleConfig.class, DataBridgeSpringModuleConfig.class, DataBridgeAopSpringModuleConfig.class, DataBridgeEnvSpringModuleConfig.class); applicationContext.refresh(); return applicationContext; }  abstract ArgumentParser getArgumentParser(); abstract ReturnValue go(String[] args); static final String BUILD_INFO_STRING_FORMAT; }
@Test public void testCreateApplicationContext() { ApplicationContext applicationContext = dataBridgeApp.createApplicationContext(); assertNotNull(applicationContext); assertNotNull(applicationContext.getBean(S3Operations.class)); }