"session",
null,
null,
null,
null);
BeanManager beanManager =
ApplicationAssociate.getCurrentInstance().getBeanManager();
beanManager.register(bean);
BeanBuilder builder = beanManager.getBuilder(beanName);
Boolean isInjectable = (Boolean) TestingUtil.invokePrivateMethod("scanForAnnotations",
new Class[] { Class.class },
new Object[] { TestBean.class },
BeanBuilder.class,
builder);
assertTrue(!isInjectable);
bean = new ManagedBeanInfo(beanName,
"com.sun.faces.config.TestManagedBeanFactory$InjectionBean",
"request",
null,
null,
null,
null);
beanManager.register(bean);
isInjectable = (Boolean) TestingUtil.invokePrivateMethod("scanForAnnotations",
new Class[] { Class.class },
new Object[] { InjectionBean.class },
BeanBuilder.class,