private static HybridTestVector createTestVector2() throws GeneralSecurityException {
    HpkeParameters params =
        HpkeParameters.builder()
            .setVariant(HpkeParameters.Variant.NO_PREFIX)
            .setKemId(HpkeParameters.KemId.DHKEM_P521_HKDF_SHA512)
            .setKdfId(HpkeParameters.KdfId.HKDF_SHA256)
            .setAeadId(HpkeParameters.AeadId.AES_128_GCM)
            .build();
    HpkePublicKey publicKey =
        HpkePublicKey.create(params, getP521PublicPointAsBytes(), /* idRequirement= */ null);

    HpkePrivateKey privateKey = HpkePrivateKey.create(publicKey, getPrivateP521Value());

    return new HybridTestVector(
        privateKey,
        new byte[] {0x01},
        new byte[] {0x02},
        Hex.decode(
            "04001a857acfba7c7c209794a9e1ba3bb877f4bbc6a924414a8ebd4677e06880a4dabba3e96c5aa246407d"
                + "e7ef79a52337e22db12547e765a42ee98b0bda86add36faf0023132c017661173781401e7edf2f27"
                + "d676cbf080bf697478e6b44a6820c8a0c538652e922a2ce95cb61c41e1a1f20db774a8739862213b"
                + "43de28e58e7f30d1aa2c4382cae60ea787d294b5970f0dc053adfc"));
  }
Test vectors for HPKE. Generated by hand from the implementation here.
java_src/src/main/java/com/google/crypto/tink/hybrid/internal/testing/HpkeTestUtil.java