@Test
public void testShouldDecryptECV1WhenFetchingSenderVerifyingKeys() throws Exception {

  PaymentMethodTokenRecipient recipient =
      new PaymentMethodTokenRecipient.Builder()
          .fetchSenderVerifyingKeysWith(
              new GooglePaymentsPublicKeysManager.Builder()
                  .setHttpTransport(
                      new MockHttpTransport.Builder()
                          .setLowLevelHttpResponse(
                              new MockLowLevelHttpResponse()
                                  .setContent(GOOGLE_VERIFYING_PUBLIC_KEYS_JSON))
                          .build())
                  .build())
          .recipientId(RECIPIENT_ID)
          .addRecipientPrivateKey(MERCHANT_PRIVATE_KEY_PKCS8_BASE64)
          .build();
  assertEquals(PLAINTEXT, recipient.unseal(CIPHERTEXT_EC_V1));
}