Bean<Alternative2> alternative2 = defineManagedBean(Alternative2.class);
InputStream stream = getClass().getClassLoader().getResourceAsStream("org/apache/webbeans/test/xml/strict/alternatives_correct.xml");
Assert.assertNotNull(stream);
WebBeansXMLConfigurator configurator = new WebBeansXMLConfigurator();
configurator.configureSpecSpecific(stream, "alternatives_correct.xml");
AlternativesManager manager = WebBeansContext.getInstance().getAlternativesManager();
Assert.assertTrue(manager.isBeanHasAlternative(alternative1));
Assert.assertTrue(manager.isBeanHasAlternative(alternative2));