DataSourceManager implements Managed { public void add(DataSource source) { Assert.assertNotNull(source); createDataRepository(source); dataSourceRepository.add(source); } @Inject  DataSourceManager(
			DataSourceRepository dataSourceRepository,
			Cache<DataRepository> dataRepositoryCache,
			DbConnectorFactory dbConnectorFactory,
			RepositoryFactory repositoryFactory,
			ProcessorChainManager processorChainManager,
			DataViewManager dataViewManager,
			NotificationManager notificationManager); void add(DataSource source); void remove(DataSource source); List<DataSource> getAll(); DataSource findBySourceId(String sourceId); DataRepository getDataRepository(DataSource source); boolean isValidSourceId(String sourceId); @Override void start(); @Override void stop();  }
@Test public void testAdd() { sourceManager.add(dataSource); new Verifications() {{ repositoryFactory.createSourceDataRepository(SOURCE_ID, (JsonPointer) any); sourceRepository.add(dataSource); }}; }