### Question:
SimpleDependantCfg { @Bean SimpleBean simpleBean(){ logger.info("---> Creating 'simpleBean' "); return new SimpleBeanImpl(); }    }### Answer:
@Test void testSimpleBeans() { var ctx = new AnnotationConfigApplicationContext(SimpleDependantCfg.class); ctx.registerShutdownHook(); var simpleDependantCfg = ctx.getBean(SimpleDependantCfg.class); assertNotNull(simpleDependantCfg); var simpleBean = simpleDependantCfg.simpleBean(); assertNotNull(simpleBean); }