public void testServiceRevoked() {
MockChildBeanContextServicesSupport mockChildBeanContextServicesSupport = new MockChildBeanContextServicesSupport();
BeanContextServicesSupport beanContextServicesSupport = new BeanContextServicesSupport();
beanContextServicesSupport.add(mockChildBeanContextServicesSupport);
BeanContextServiceRevokedEvent beanContextServiceRevokedEvent = new BeanContextServiceRevokedEvent(new BeanContextServicesSupport(), Collection.class,false);
beanContextServicesSupport.serviceRevoked(beanContextServiceRevokedEvent);
assertTrue(mockChildBeanContextServicesSupport.revokeCalled);
}
public static class MockChildBeanContextServicesSupport extends
BeanContextServicesSupport {