startContainer(beanClasses, beanXmls);
Set<Bean<?>> beans = getBeanManager().getBeans(Pencil.class, new AnnotationLiteral<Pen>(){});
Assert.assertEquals(1, beans.size());
Pencil pencil = getInstance(Pencil.class, new AnnotationLiteral<Pen>(){});
Assert.assertNotNull(pencil);
Assert.assertEquals(42, pencil.getNr());
beans = getBeanManager().getBeans(PencilProducerBean.class);
Assert.assertEquals(1, beans.size());
shutDownContainer();