startContainer(beanClasses, beanXmls);
Bean<?> simpleInjectionTargetBean = getBeanManager().getBeans(SimpleInjectionTarget.class).iterator().next();
CreationalContext<?> context = getBeanManager().createCreationalContext(simpleInjectionTargetBean);
SimpleInjectionTarget target = (SimpleInjectionTarget) getBeanManager().getReference(simpleInjectionTargetBean, SimpleInjectionTarget.class, context);
Assert.assertFalse(target.isSimpleInterfaceAmbiguous());
Iterator<SimpleInterface> simpleInterfaceInstances = target.getSimpleInterfaceInstances();
Assert.assertTrue(simpleInterfaceInstances.hasNext());
Assert.assertEquals(AlternativeBean.class, simpleInterfaceInstances.next().getImplementationType());
Assert.assertFalse(simpleInterfaceInstances.hasNext());
Assert.assertEquals(AlternativeBean.class, target.getSimpleInterface1().getImplementationType());
Assert.assertEquals(AlternativeBean.class, target.getSimpleInterface2().getImplementationType());
shutDownContainer();
}