@Test
public void testAes128EaxTemplate() throws Exception {

  KeyTemplate template = AesEaxKeyManager.aes128EaxTemplate();
  assertEquals(new AesEaxKeyManager().getKeyType(), template.getTypeUrl());
  assertEquals(KeyTemplate.OutputPrefixType.TINK, template.getOutputPrefixType());
  AesEaxKeyFormat format =
      AesEaxKeyFormat.parseFrom(
          ByteString.copyFrom(template.getValue()), ExtensionRegistryLite.getEmptyRegistry());
  assertEquals(16, format.getKeySize());
  assertTrue(format.hasParams());
  assertEquals(16, format.getParams().getIvSize());
}