private HpkePublicKey getPublicKey(HpkeParameters parameters) throws GeneralSecurityException {
    return HpkePublicKey.create(
        parameters, Bytes.copyFrom(publicKeyBytes), /* idRequirement= */ null);
  }
Unit tests for {@link HpkeEncrypt} and {@link HpkeDecrypt}.
java_src/src/test/java/com/google/crypto/tink/hybrid/internal/HpkeEncryptDecryptTest.java