### Question:
CatalogDataResourceProviderManagerImpl implements CatalogDataResourceProviderManager, EventListener { @SuppressWarnings("unused") void unbindFactory(CatalogDataResourceProviderFactory factory, Map<String, String> properties) { log.debug("Unbinding provider factory {}", factory.getClass().getName()); providerFactories.remove(properties.get(CatalogDataResourceProviderFactory.PROPERTY_FACTORY_SERVICE_ID)); if (resolver != null) { registerDataRoots(); } }  void onEvent(EventIterator events); @Override Map<String, CatalogDataResourceProviderFactory<?>> getProviderFactories(); @Override List<Resource> getDataRoots();  }### Answer:
@Test public void testUnbindFactory() throws Exception { manager.activate(componentContext); FactoryConfig factoryConfig = bindFactory(); unbindFactory(factoryConfig); Assert.assertTrue(manager.getProviderFactories().values().isEmpty()); }