@Test
public void testECV1WithPrecomputedKeys() throws Exception {

  PaymentMethodTokenSender sender =
      new PaymentMethodTokenSender.Builder()
          .senderSigningKey(GOOGLE_SIGNING_EC_V1_PRIVATE_KEY_PKCS8_BASE64)
          .recipientId(RECIPIENT_ID)
          .rawUncompressedRecipientPublicKey(MERCHANT_PUBLIC_KEY_BASE64)
          .build();
  PaymentMethodTokenRecipient recipient =
      new PaymentMethodTokenRecipient.Builder()
          .senderVerifyingKeys(GOOGLE_VERIFYING_PUBLIC_KEYS_JSON)
          .recipientId(RECIPIENT_ID)
          .addRecipientPrivateKey(MERCHANT_PRIVATE_KEY_PKCS8_BASE64)
          .build();
  String plaintext = "blah";
  assertEquals(plaintext, recipient.unseal(sender.seal(plaintext)));
}