final Component dao = new InjectorHelper().getProxyComponentReturningInjected(MyBeanDao.class,
dumb_dao, MyBean.class, injection);
yan.registerComponent("dao", dao);
MyBeanDao mdao = (MyBeanDao)yan.getInstance("dao");
assertEquals(mdao, mdao);
Named mbean = mdao.getBeanById(1);
assertEquals("apple", mbean.getName());
}