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);