DataSourceManager implements Managed { public DataSource findBySourceId(String sourceId) throws DocumentNotFoundException { return dataSourceRepository.findById(sourceId); } @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 testFindBySourceId() { sourceManager.findBySourceId(SOURCE_ID); new Verifications() {{ sourceRepository.findById(SOURCE_ID); }}; }