@Test void testGetBean() { assertThat(springMailbox.getBean("authenticator").getClass().getName()).isEqualTo(AnonymousAuthenticator.class.getName()); assertThat(springMailbox.getBean("mailboxcopier").getClass().getName()).isEqualTo(MailboxCopierImpl.class.getName()); }
public Object getBean(String beanName) { return applicationContext.getBean(beanName); }
SpringMailbox { public Object getBean(String beanName) { return applicationContext.getBean(beanName); } }
SpringMailbox { public Object getBean(String beanName) { return applicationContext.getBean(beanName); } SpringMailbox(); }
SpringMailbox { public Object getBean(String beanName) { return applicationContext.getBean(beanName); } SpringMailbox(); Object getBean(String beanName); }
SpringMailbox { public Object getBean(String beanName) { return applicationContext.getBean(beanName); } SpringMailbox(); Object getBean(String beanName);  }