@RequiresApi(api = Build.VERSION_CODES.O)
  private static void createNormalChannel(Context context) {
    NotificationManager mNotificationManager =
        (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
    if (mNotificationManager.getNotificationChannel(CHANNEL_NORMAL_ID) == null) {
      NotificationChannel mChannel =
          new NotificationChannel(
              CHANNEL_NORMAL_ID,
              context.getString(R.string.channel_name_normal),
              NotificationManager.IMPORTANCE_MIN);
      // Configure the notification channel.
      mChannel.setDescription(context.getString(R.string.channel_description_normal));
      mNotificationManager.createNotificationChannel(mChannel);
    }
  }
@Test
  @Config(sdk = {P}) // min sdk is O
  public void testCreateNormalChannel() {
    NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_NORMAL_ID);
    NotificationConstants.setMetadata(context, builder, TYPE_NORMAL);
    List<Object> channels = shadowNotificationManager.getNotificationChannels();
    assertNotNull(channels);
    assertEquals(1, channels.size());
    NotificationChannel channel = (NotificationChannel) channels.get(0);
    assertEquals(IMPORTANCE_MIN, channel.getImportance());
    assertEquals(CHANNEL_NORMAL_ID, channel.getId());
    assertEquals(context.getString(R.string.channel_name_normal), channel.getName());
    assertEquals(context.getString(R.string.channel_description_normal), channel.getDescription());
  }