### Question:
CDIBeanService { public void injectManual(Object obj) { BeanManager beanManager = getBeanManager(); AnnotatedType type = (AnnotatedType) beanManager.createAnnotatedType(obj.getClass()); InjectionTarget it = beanManager.createInjectionTarget(type); CreationalContext instanceContext = beanManager.createCreationalContext(null); it.inject(obj, instanceContext); it.postConstruct(obj); } private  CDIBeanService(); static CDIBeanService getInstance(); T getCDIBean(final Class<T> clazz); T getCDIBeanByName(final String name, Class<T> clazz); void injectManual(Object obj);  }### Answer:
@Test public void injectManual() throws Exception { final CDIBeanService cut = CDIBeanService.getInstance(); NoCdiBean noCdiBean = new NoCdiBean(); assertThat(noCdiBean.getCdiTestInjected(), nullValue()); cut.injectManual(noCdiBean); assertThat(noCdiBean.getCdiTestInjected(), notNullValue()); assertThat(noCdiBean.getCdiTestInjected().getLabel(), is("I am a manuel injected bean")); }