@Test
public void testNonNullContextInfo() throws Exception {

  KeyPair uaKeyPair = EllipticCurves.generateKeyPair(WebPushConstants.NIST_P256_CURVE_TYPE);
  ECPublicKey uaPublicKey = (ECPublicKey) uaKeyPair.getPublic();
  byte[] authSecret = Random.randBytes(16);
  HybridEncrypt hybridEncrypt =
      new WebPushHybridEncrypt.Builder()
          .withAuthSecret(authSecret)
          .withRecipientPublicKey(uaPublicKey)
          .build();
  byte[] plaintext = Random.randBytes(20);
  byte[] contextInfo = new byte[0];
  try {
    byte[] unusedCiphertext = hybridEncrypt.encrypt(plaintext, contextInfo);
    fail("Expected GeneralSecurityException");
  } catch (GeneralSecurityException ex) {
    // expected;
  }
}