@Test
public void killTheFactory() throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException {
assertThat(context, is(notNullValue()));
ComponentInstance ci = null;
PrimitiveComponentType type = createAProvider();
ci = type.createInstance();
assertThat("Ci is valid", ci.getState(), is(ComponentInstance.VALID));
assertThat(ipojoHelper.isServiceAvailableByName(Foo.class.getName(), ci
.getInstanceName()), is(true));
type.stop();
assertThat("Ci is disposed", ci.getState(),
is(ComponentInstance.DISPOSED));
assertThat(ipojoHelper.isServiceAvailableByName(Foo.class.getName(), ci
.getInstanceName()), is(false));