assertNotNull(blueprintContainer);
Foo foo = getOsgiService(Foo.class, "(" + BlueprintConstants.COMPONENT_NAME_PROPERTY + "=foo)", DEFAULT_TIMEOUT);
assertEquals(5, foo.getA());
FooRegistrationListener listener =
(FooRegistrationListener) blueprintContainer.getComponentInstance("fooRegistrationListener");
// If registration listener works fine, the registration method should
// have already been called and properties that were passed to this
// method should have been not null
Map props = listener.getProperties();
assertNotNull(props);
assertTrue(props.containsKey(BlueprintConstants.COMPONENT_NAME_PROPERTY));
assertEquals("foo", props.get(BlueprintConstants.COMPONENT_NAME_PROPERTY));