@Test
public void testShouldDecryptV1WhenFetchingSenderVerifyingKeys() throws Exception {

  RewardedAdsVerifier verifier =
      new RewardedAdsVerifier.Builder()
          .fetchVerifyingPublicKeysWith(
              new KeysDownloader.Builder()
                  .setHttpTransport(
                      new MockHttpTransport.Builder()
                          .setLowLevelHttpResponse(
                              new MockLowLevelHttpResponse()
                                  .setContent(GOOGLE_VERIFYING_PUBLIC_KEYS_JSON))
                          .build())
                  .setUrl("https://someUrl" /* unused */)
                  .build())
          .build();
  verifier.verify(signUrl(REWARD_URL, GOOGLE_SIGNING_PRIVATE_KEY_PKCS8_BASE64, KEY_ID));
}