@Test
public void testRawAes256GcmSivTemplate() throws Exception {

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