### Question:
CatalogDataResourceProviderManagerImpl implements CatalogDataResourceProviderManager, EventListener { @Reference( service = CatalogDataResourceProviderFactory.class, bind = "bindFactory", unbind = "unbindFactory", cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) @SuppressWarnings("unused") void bindFactory(CatalogDataResourceProviderFactory factory, Map<String, String> properties) { log.debug("Binding provider factory {}", factory.getClass().getName()); providerFactories.put(properties.get(CatalogDataResourceProviderFactory.PROPERTY_FACTORY_SERVICE_ID), factory); if (resolver != null) { registerDataRoots(); } }  void onEvent(EventIterator events); @Override Map<String, CatalogDataResourceProviderFactory<?>> getProviderFactories(); @Override List<Resource> getDataRoots();  }### Answer:
@Test public void testBindFactory() throws Exception { manager.activate(componentContext); FactoryConfig factoryConfig = bindFactory(); Assert.assertEquals(1, manager.getProviderFactories().values().size()); Assert.assertTrue(manager.getProviderFactories().values().contains(factoryConfig.factory)); }