@StringRes
  @VisibleForTesting
  static int getRationale(int requestCode) {
    return switch (requestCode) {
      case CONTACTS_PERMISSION_REQUEST_CODE -> R.string.contacts_permissions_rationale;
      case NOTIFICATION_PERMISSION_REQUEST_CODE -> R.string.notifications_permissions_rationale;
      default -> throw new IllegalArgumentException("Unknown request code " + requestCode);
    };
  }
@Test
  public void testGetRationale() {
    Assert.assertEquals(
        R.string.contacts_permissions_rationale,
        PermissionRequestHelper.getRationale(
            PermissionRequestHelper.CONTACTS_PERMISSION_REQUEST_CODE));
    Assert.assertEquals(
        R.string.notifications_permissions_rationale,
        PermissionRequestHelper.getRationale(
            PermissionRequestHelper.NOTIFICATION_PERMISSION_REQUEST_CODE));
  }