ContextFactory.initRequestContext(null);
Assert.assertEquals(2, comps.size());
CheckWithCheckPayment object = (CheckWithCheckPayment)getManager().getInstance(comps.get(0));
PreDestroyComponent object2 = (PreDestroyComponent)getManager().getInstance(comps.get(1));
object2.getP();
Assert.assertTrue(object instanceof CheckWithCheckPayment);
Assert.assertTrue(object2 instanceof PreDestroyComponent);
PreDestroyComponent pcc = (PreDestroyComponent) object2;
CheckWithCheckPayment payment = (CheckWithCheckPayment) pcc.getP();
payment.setValue(true);
ManagedBean<PreDestroyComponent> s = (ManagedBean<PreDestroyComponent>) comps.get(1);
List<InterceptorData> stack = s.getInterceptorStack();
Assert.assertEquals(2, stack.size());
Assert.assertNotNull(pcc.getP());
Assert.assertSame(object.getValue(), payment.getValue());
Assert.assertFalse(PreDestroyComponent.isDestroyed());
ContextFactory.destroyRequestContext(null);