@Test
public void testAes128GcmSivTemplate() throws Exception {

  KeyTemplate template = AesGcmSivKeyManager.aes128GcmSivTemplate();
  assertEquals(new AesGcmSivKeyManager().getKeyType(), template.getTypeUrl());
  assertEquals(KeyTemplate.OutputPrefixType.TINK, template.getOutputPrefixType());
  AesGcmSivKeyFormat format =
      AesGcmSivKeyFormat.parseFrom(
          ByteString.copyFrom(template.getValue()), ExtensionRegistryLite.getEmptyRegistry());
  assertEquals(16, format.getKeySize());
}