Blueprint implements BlueprintRegistry, ContextEnricher, XmlWriter { Collection<Bean> getBeans() { return generatedBeans; } Blueprint(BlueprintConfiguration blueprintConfiguration, Class<?>... beanClasses);  Blueprint(BlueprintConfiguration blueprintConfiguration, Collection<Class<?>> beanClasses); BeanRef getMatching(BeanTemplate template); List<BeanRef> getAllMatching(BeanTemplate template); @Override void addBean(String id, Class<?> clazz); @Override void addBlueprintContentWriter(String id, XmlWriter blueprintWriter); @Override BlueprintConfiguration getBlueprintConfiguration(); void write(XMLStreamWriter writer); boolean shouldBeGenerated();  }
@Test public void testLists() { Blueprint blueprint = new Blueprint(blueprintConfiguration, MyBean3.class); Assert.assertEquals(1, blueprint.getBeans().size()); Assert.assertEquals(0, getOsgiServices(blueprint).size()); }
@Test public void testLists2() { Blueprint blueprint = new Blueprint(blueprintConfiguration, ServiceReferences.class); Assert.assertEquals(1, blueprint.getBeans().size()); Assert.assertEquals(3, getOsgiServices(blueprint).size()); }