@Test
public void shoudCallPredestroyExactlyOneTimeForComponentFactoriesScannedFromTheClasspath() {
ComponentFactoryInTheClasspath componentFactory = getFromContainer(ComponentFactoryInTheClasspath.class);
assertThat(componentFactory.getCallsToPreDestroy(), is(equalTo(0)));
provider.stop();
assertThat(componentFactory.getCallsToPreDestroy(), is(equalTo(1)));
resetProvider();
}