DynamicChannelLoaderImpl implements DynamicChannelLoader { @Override public boolean channelExists(String moduleName) { return getChannelProvider(moduleName) != null; } @Autowired  DynamicChannelLoaderImpl(BundleContext bundleContext); @Override @Transactional List<TriggerEvent> getDynamicTriggers(String moduleName, int page, int pageSize); @Override boolean providesDynamicTriggers(String moduleName); @Override Long countByChannelModuleName(String moduleName); @Override @Transactional TriggerEvent getTrigger(TaskTriggerInformation triggerInformation); @Override boolean channelExists(String moduleName); @Override boolean validateTrigger(String moduleName, String subject);  }
@Test public void testChannelExists() throws Exception { assertTrue(channelLoader.channelExists(MODULE_SYMBOLIC_NAME)); }