### Question:
SlingOsgiBundleShutdownHandler extends ContextShutdownHandler implements SynchronousBundleListener, BundleContextAware { @PostConstruct public void startListening() { this.context.addBundleListener(this); }  @Override @Async void bundleChanged(BundleEvent event); @PostConstruct void startListening(); @PreDestroy void stopListening(); @Override void setBundleContext(BundleContext bundleContext);  }### Answer:
@Test public void testRegistrationAtBundleContext() { startListening(); verifyShutdownHandlerIsRegisteredAsBundleListener(); }