@Test
public void shoudCallPredestroyExactlyOneTimeForComponentsScannedFromTheClasspath() {
CustomComponentWithLifecycleInTheClasspath component = getFromContainer(CustomComponentWithLifecycleInTheClasspath.class);
assertThat(component.getCallsToPreDestroy(), is(equalTo(0)));
provider.stop();
assertThat(component.getCallsToPreDestroy(), is(equalTo(1)));
resetProvider();
}