Assert.assertEquals(2, comps.size());
Object producerResult = getContext(ApplicationScoped.class).get(getManager().resolveByName("service").iterator().next(), new CreationalContextImpl());
IService producverService = (IService)producerResult;
Object disposalComp = getContext(RequestScoped.class).get(comps.get(1));
Object object = getContext(ApplicationScoped.class).get(comps.get(0), new CreationalContextImpl());
Assert.assertTrue(object instanceof ServiceImpl1);
Assert.assertTrue(disposalComp instanceof DisposalMethodComponent);
DisposalMethodComponent mc = (DisposalMethodComponent) disposalComp;
IService s = mc.service();
Assert.assertNotNull(s);
ContextFactory.destroyApplicationContext(null);
ContextFactory.destroyRequestContext(null);