@Test
public void testHkdfSha256Template() throws Exception {

  KeyTemplate kt = HkdfPrfKeyManager.hkdfSha256Template();
  assertThat(kt.getTypeUrl()).isEqualTo(new HkdfPrfKeyManager().getKeyType());
  assertThat(kt.getOutputPrefixType()).isEqualTo(KeyTemplate.OutputPrefixType.RAW);
  HkdfPrfKeyFormat format =
      HkdfPrfKeyFormat.parseFrom(kt.getValue(), ExtensionRegistryLite.getEmptyRegistry());
  assertThat(format.getKeySize()).isEqualTo(32);
  assertThat(format.getParams().getHash()).isEqualTo(HashType.SHA256);
}