Object object = getContext(RequestScoped.class).get(comps.get(2), new CreationalContextImpl());
Assert.assertNotNull(object);
Assert.assertTrue(object instanceof PaymentProcessorComponent);
PaymentProcessorComponent uc = (PaymentProcessorComponent) object;
IPayment p = uc.getPaymentCheck();
Assert.assertTrue(p instanceof CheckWithCheckPayment);
Assert.assertEquals("CHECK", p.pay());
p = uc.getPaymentMoney();
Assert.assertTrue(p instanceof CheckWithMoneyPayment);
Assert.assertEquals("MONEY", p.pay());