@Test
public void testRawEcdsaP256Template() throws Exception {

  KeyTemplate template = EcdsaSignKeyManager.rawEcdsaP256Template();
  assertThat(template.getTypeUrl()).isEqualTo(new EcdsaSignKeyManager().getKeyType());
  assertThat(template.getOutputPrefixType()).isEqualTo(KeyTemplate.OutputPrefixType.RAW);
  EcdsaKeyFormat format =
      EcdsaKeyFormat.parseFrom(template.getValue(), ExtensionRegistryLite.getEmptyRegistry());
  assertThat(format.hasParams()).isTrue();
  assertThat(format.getParams().getHashType()).isEqualTo(HashType.SHA256);
  assertThat(format.getParams().getCurve()).isEqualTo(EllipticCurveType.NIST_P256);
  assertThat(format.getParams().getEncoding()).isEqualTo(EcdsaSignatureEncoding.IEEE_P1363);
}