Assert.assertEquals(2, comps.size());
Object producerResult = getManager().getInstanceByName("service");
IService producverService = (IService)producerResult;
Assert.assertNotNull(producverService);
Object disposalComp = getManager().getInstance(comps.get(1));
Object object = getManager().getInstance(comps.get(0));
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);