@Test
  public void testKeyTemplatesWork() throws Exception {
    Parameters p = AesEaxKeyManager.aes128EaxTemplate().toParameters();
    assertThat(KeysetHandle.generateNew(p).getAt(0).getKey().getParameters()).isEqualTo(p);

    p = AesEaxKeyManager.rawAes128EaxTemplate().toParameters();
    assertThat(KeysetHandle.generateNew(p).getAt(0).getKey().getParameters()).isEqualTo(p);

    p = AesEaxKeyManager.aes256EaxTemplate().toParameters();
    assertThat(KeysetHandle.generateNew(p).getAt(0).getKey().getParameters()).isEqualTo(p);

    p = AesEaxKeyManager.rawAes256EaxTemplate().toParameters();
    assertThat(KeysetHandle.generateNew(p).getAt(0).getKey().getParameters()).isEqualTo(p);
  }
Test for AesEaxJce and its key manager.
java_src/src/test/java/com/google/crypto/tink/aead/AesEaxKeyManagerTest.java