NotificationChannelRegistry { public void createDeferredNotificationChannel(@NonNull final NotificationChannelCompat channelCompat) { executor.execute(new Runnable() { @Override public void run() { dataManager.createChannel(channelCompat); } }); } @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)  NotificationChannelRegistry(@NonNull Context context, @NonNull AirshipConfigOptions configOptions); @VisibleForTesting  NotificationChannelRegistry(@NonNull Context context, @NonNull NotificationChannelRegistryDataManager dataManager, @NonNull Executor executor); @NonNull PendingResult<NotificationChannelCompat> getNotificationChannel(@NonNull final String id); @Nullable @WorkerThread NotificationChannelCompat getNotificationChannelSync(@NonNull String id); void deleteNotificationChannel(@NonNull final String id); void createNotificationChannel(@NonNull final NotificationChannelCompat channelCompat); void createDeferredNotificationChannel(@NonNull final NotificationChannelCompat channelCompat); void createNotificationChannels(@XmlRes final int resourceId); void createDeferredNotificationChannels(@XmlRes final int resourceId);  }
@Test public void testCreateDeferredChannel() { channelRegistry.createDeferredNotificationChannel(channelCompat); verifyZeroInteractions(notificationManager); }