@Test
public void testConstructorWith256BitCiphers() throws Exception {

  if (Cipher.getMaxAllowedKeyLength("AES") < 256) {
    System.out.println(
        "Unlimited Strength Jurisdiction Policy Files are required"
            + " but not installed. Skip tests with keys larger than 128 bits.");
    return;
  }
  // Supported templates.
  RegistryEciesAeadHkdfDemHelper helper =
      new RegistryEciesAeadHkdfDemHelper(AeadKeyTemplates.AES256_GCM);
  assertEquals(32, helper.getSymmetricKeySizeInBytes());
  helper = new RegistryEciesAeadHkdfDemHelper(AeadKeyTemplates.AES256_CTR_HMAC_SHA256);
  assertEquals(64, helper.getSymmetricKeySizeInBytes());
}