public void createAServiceProvider() throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException {
assertThat(context, is(notNullValue()));
ComponentInstance ci = null;
SingletonComponentType type = createAProvider();
ci = type.create();
assertThat("Ci is valid", ci.getState(), is(ComponentInstance.VALID));
ServiceReference ref = ipojoHelper.getServiceReferenceByName(Foo.class
.getName(), ci.getInstanceName());
assertThat(ref, is(notNullValue()));
type.disposeInstance(ci);