defineManagedBean(ServiceImpl1.class);
List<AbstractOwbBean<?>> comps = getComponents();
ContextFactory contextFactory = WebBeansContext.getInstance().getContextFactory();
contextFactory.initRequestContext(null);
contextFactory.initApplicationContext(null);
Assert.assertEquals(2, comps.size());
Object object = getManager().getInstance(comps.get(0));