Object instance = compDef.create(CreationalContextFactory.getInstance().getCreationalContext(compDef));
Assert.assertNotNull(instance);
Assert.assertTrue(instance instanceof MockAsynchronousCreditCardPaymentProcessor);
MockAsynchronousCreditCardPaymentProcessor ccProcessor = (MockAsynchronousCreditCardPaymentProcessor) instance;
SystemConfig config = ccProcessor.getConfig();
Assert.assertEquals("default", config.getValue());
PaymentProcessor paymentProcesor = ccProcessor.getPaymentProcessor();
Assert.assertNotNull(paymentProcesor);
}