@Test
public void testAes256CmacTemplate() throws Exception {

  KeyTemplate template = AesCmacKeyManager.aes256CmacTemplate();
  assertThat(template.getTypeUrl()).isEqualTo(new AesCmacKeyManager().getKeyType());
  assertThat(template.getOutputPrefixType()).isEqualTo(KeyTemplate.OutputPrefixType.TINK);
  AesCmacKeyFormat format =
      AesCmacKeyFormat.parseFrom(template.getValue(), ExtensionRegistryLite.getEmptyRegistry());
  assertThat(format.getKeySize()).isEqualTo(32);
  assertThat(format.getParams().getTagSize()).isEqualTo(16);
}