@Test
public void testHs384Template() throws Exception {

  KeyTemplate template = JwtHmacKeyManager.hs384Template();
  assertThat(template.getTypeUrl()).isEqualTo(new JwtHmacKeyManager().getKeyType());
  assertThat(template.getOutputPrefixType()).isEqualTo(KeyTemplate.OutputPrefixType.RAW);
  JwtHmacKeyFormat format =
      JwtHmacKeyFormat.parseFrom(template.getValue(), ExtensionRegistryLite.getEmptyRegistry());
  assertThat(format.getKeySize()).isEqualTo(48);
  assertThat(format.getHashType()).isEqualTo(HashType.SHA384);
}