ContextFactory.initRequestContext(null);
ContextFactory.initApplicationContext(null);
Assert.assertEquals(4, getDeployedComponents());
Object obj = getContext(ApplicationScoped.class).get(comps.get(0), new CreationalContextImpl());
getInstanceByName("service");
getContext(ApplicationScoped.class).get(comps.get(1), new CreationalContextImpl());
Object object = getContext(ApplicationScoped.class).get(comps.get(2), new CreationalContextImpl());
Assert.assertTrue(object instanceof Producer1ConsumerComponent);
Producer1ConsumerComponent single = (Producer1ConsumerComponent) object;