@Test
public void testAes256CmacTemplate() throws Exception {

  KeyTemplate template = AesCmacPrfKeyManager.aes256CmacTemplate();
  assertThat(template.getTypeUrl()).isEqualTo(new AesCmacPrfKeyManager().getKeyType());
  assertThat(template.getOutputPrefixType()).isEqualTo(KeyTemplate.OutputPrefixType.RAW);
  AesCmacPrfKeyFormat format =
      AesCmacPrfKeyFormat.parseFrom(
          template.getValue(), ExtensionRegistryLite.getEmptyRegistry());
  assertThat(format.getKeySize()).isEqualTo(32);
}