@Test
public void testShouldVerifyIfKeyIdIsLargerThanMaxInt() throws Exception {

  long keyId = Integer.MAX_VALUE + 1;
  JSONObject trustedKeysJson = new JSONObject(GOOGLE_VERIFYING_PUBLIC_KEYS_JSON);
  trustedKeysJson
      .getJSONArray("keys")
      .getJSONObject(0)
      .put("keyId", keyId);
  RewardedAdsVerifier verifier =
      new RewardedAdsVerifier.Builder()
          .setVerifyingPublicKeys(trustedKeysJson.toString())
          .build();
  verifier.verify(signUrl(REWARD_URL, GOOGLE_SIGNING_PRIVATE_KEY_PKCS8_BASE64, keyId));
}