@Test
  public void test_24byte_keyCreation_throws() throws Exception {
    // We currently disallow creation of AesEaxKeys with 24 bytes (Tink doesn't support using these
    // for consistency among the languages, so we also disallow creation at the moment).
    AesEaxParameters parameters =
        AesEaxParameters.builder()
            .setKeySizeBytes(24)
            .setTagSizeBytes(16)
            .setIvSizeBytes(12)
            .setVariant(Variant.NO_PREFIX)
            .build();
    assertThrows(GeneralSecurityException.class, () -> KeysetHandle.generateNew(parameters));
  }
Test for AesEaxJce and its key manager.
java_src/src/test/java/com/google/crypto/tink/aead/AesEaxKeyManagerTest.java