### Question:
RequireJsBundleListener implements BundleListener { public void destroy() { this.serviceRegistrationMap = null; this.requireConfigMap = null; this.bundleContext.removeBundleListener( this ); }  void setBundleContext( BundleContext bundleContext ); void setRequireJsConfigManager( RequireJsConfigManager requireJsConfigManager ); void init(); void destroy(); Collection<IPlatformPluginRequireJsConfigurations> getScripts(); @Override void bundleChanged( BundleEvent bundleEvent ); boolean removeBundle( Bundle bundle ); static final String EXTERNAL_RESOURCES_JSON_PATH; static final String STATIC_RESOURCES_JSON_PATH; }### Answer:
@Test public void destroy() { this.requireJsBundleListener.destroy(); verify( this.mockBundleContext, times( 1 ) ).removeBundleListener( same( this.requireJsBundleListener ) ); }