defineManagedBean(AlternativeComponent.class);
defineManagedBean(NotAlternativeComponent.class);
Bean<AlternativeInjector> injector = defineManagedBean(AlternativeInjector.class);
AlternativeInjector instance = (AlternativeInjector) getManager().getReference(injector, AlternativeInjector.class, getManager().createCreationalContext(injector));
Assert.assertNotNull(instance);
IAlternative alternative = instance.getAlternative();
Assert.assertTrue(alternative instanceof NotAlternativeComponent);
WebBeansContext.getInstance().getPluginLoader().shutDown();