@Test
@SpecAssertions({ @SpecAssertion(section = "3.14", id = "j"), @SpecAssertion(section = "3.14", id = "k") })
public void testForEachEnterpriseBeanANewBeanExists() {
Bean<OrderLocal> orderBean = getBeans(OrderLocal.class).iterator().next();
Set<Bean<OrderLocal>> newOrderBeans = getBeans(OrderLocal.class, new NewLiteral(Order.class));
assert newOrderBeans.size() == 1;
Bean<OrderLocal> newOrderBean = newOrderBeans.iterator().next();
assert orderBean.getQualifiers().size() == 2;
assert orderBean.getQualifiers().contains(new DefaultLiteral());
assert orderBean.getQualifiers().contains(AnyLiteral.INSTANCE);
assert orderBean.getTypes().equals(newOrderBean.getTypes());
assert orderBean.getBeanClass().equals(newOrderBean.getBeanClass());
assert newOrderBean.getQualifiers().size() == 1;
assert newOrderBean.getQualifiers().iterator().next().annotationType().equals(New.class);
Set<Bean<LionLocal>> lionBeans = getBeans(LionLocal.class, TameLiteral.INSTANCE);
Set<Bean<LionLocal>> newLionBeans = getBeans(LionLocal.class, new NewLiteral(Lion.class));
assert lionBeans.size() == 1;
assert newLionBeans.size() == 1;
Bean<LionLocal> lionBean = lionBeans.iterator().next();
Bean<LionLocal> newLionBean = newLionBeans.iterator().next();
assert lionBean.getQualifiers().size() == 2;