@Test
public void testAes128GcmHkdf1MBTemplate() throws Exception {

  KeyTemplate template = AesGcmHkdfStreamingKeyManager.aes128GcmHkdf1MBTemplate();
  assertThat(template.getTypeUrl()).isEqualTo(new AesGcmHkdfStreamingKeyManager().getKeyType());
  assertThat(template.getOutputPrefixType()).isEqualTo(KeyTemplate.OutputPrefixType.RAW);
  AesGcmHkdfStreamingKeyFormat format =
      AesGcmHkdfStreamingKeyFormat.parseFrom(
          template.getValue(), ExtensionRegistryLite.getEmptyRegistry());
  assertThat(format.getKeySize()).isEqualTo(16);
  assertThat(format.getParams().getDerivedKeySize()).isEqualTo(16);
  assertThat(format.getParams().getHkdfHashType()).isEqualTo(HashType.SHA256);
  assertThat(format.getParams().getCiphertextSegmentSize()).isEqualTo(1 << 20);
}