@Test
public void createKey_checkValues() throws Exception {

  EciesAeadHkdfKeyFormat format =
      createKeyFormat(
          EllipticCurveType.NIST_P256,
          HashType.SHA256,
          EcPointFormat.UNCOMPRESSED,
          AesCtrHmacAeadKeyManager.aes128CtrHmacSha256Template(),
          TestUtil.hexDecode("aabbccddeeff"));
  EciesAeadHkdfPrivateKey key = factory.createKey(format);
  assertThat(key.getPublicKey().getParams()).isEqualTo(format.getParams());
  assertThat(key.getPublicKey().getX()).isNotEmpty();
  assertThat(key.getPublicKey().getY()).isNotEmpty();
  assertThat(key.getKeyValue()).isNotEmpty();
}