NotificationChannelRegistryDataManager extends DataManager { @WorkerThread public boolean createChannel(@NonNull NotificationChannelCompat channelCompat) { final SQLiteDatabase db = getWritableDatabase(); if (db == null) { Logger.error("NotificationChannelRegistryDataManager - Unable to save notification channel."); return false; } saveChannel(channelCompat, db); return true; } NotificationChannelRegistryDataManager(@NonNull Context context, @NonNull String appKey, @NonNull String dbName); @WorkerThread boolean createChannel(@NonNull NotificationChannelCompat channelCompat); @NonNull @WorkerThread Set<NotificationChannelCompat> getChannels(); @Nullable @WorkerThread NotificationChannelCompat getChannel(@NonNull String channelId); @WorkerThread boolean deleteChannel(@NonNull String channelId);  }
@Test public void testCreateChannel() { boolean success = dataManager.createChannel(channel1); Assert.assertTrue(success); }