@Test
public void validateKey_usualPublicKey() throws Exception {

  verifyManager.validateKey(
      signManager.getPublicKey(
          createKey(HashType.SHA256, EllipticCurveType.NIST_P256, EcdsaSignatureEncoding.DER)));
  verifyManager.validateKey(
      signManager.getPublicKey(
          createKey(
              HashType.SHA256, EllipticCurveType.NIST_P256, EcdsaSignatureEncoding.IEEE_P1363)));
  verifyManager.validateKey(
      signManager.getPublicKey(
          createKey(HashType.SHA384, EllipticCurveType.NIST_P384, EcdsaSignatureEncoding.DER)));
  verifyManager.validateKey(
      signManager.getPublicKey(
          createKey(
              HashType.SHA384, EllipticCurveType.NIST_P384, EcdsaSignatureEncoding.IEEE_P1363)));
  verifyManager.validateKey(
      signManager.getPublicKey(
          createKey(HashType.SHA512, EllipticCurveType.NIST_P384, EcdsaSignatureEncoding.DER)));
  verifyManager.validateKey(
      signManager.getPublicKey(
          createKey(
              HashType.SHA512, EllipticCurveType.NIST_P384, EcdsaSignatureEncoding.IEEE_P1363)));
  verifyManager.validateKey(
      signManager.getPublicKey(
          createKey(HashType.SHA512, EllipticCurveType.NIST_P521, EcdsaSignatureEncoding.DER)));
  verifyManager.validateKey(
      signManager.getPublicKey(
          createKey(
              HashType.SHA512, EllipticCurveType.NIST_P521, EcdsaSignatureEncoding.IEEE_P1363)));
}