@Test
public void testRawAes256GcmTemplate() throws Exception {

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