defineInterceptor(WebBeansInterceptor.class);
defineInterceptor(WebBeanswithMetaInterceptor.class);
defineManagedBean(WMetaInterceptorComponent.class);
ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
contextFactory.initRequestContext(null);
List<AbstractOwbBean<?>> comps = getComponents();
Object object = getManager().getInstance(comps.get(0));
Assert.assertTrue(object instanceof WMetaInterceptorComponent);
WMetaInterceptorComponent comp = (WMetaInterceptorComponent) object;
int s = comp.hello();
Assert.assertEquals(5, s);
s = comp.hello2();
Assert.assertEquals(10, s);
contextFactory.destroyRequestContext(null);
}