@Test
public void testMergeBeansXmls() throws Exception {
createRunner("alternative.xml", "decorator.xml", "interceptor.xml").run(new Runnable() {
public void run(WeldManager beanManager) {
ModuleEnablement enabled = ((BeanManagerImpl) beanManager).getEnabled();
Assert.assertEquals(1, enabled.getAlternativeClasses().size());
Assert.assertEquals(Alt.class, enabled.getAlternativeClasses().iterator().next());
Assert.assertEquals(1, enabled.getInterceptors().size());
Assert.assertEquals(Int.class, enabled.getInterceptors().iterator().next());
Assert.assertEquals(1, enabled.getDecorators().size());
Assert.assertEquals(Dec.class, enabled.getDecorators().iterator().next());
}
});
}