@Test
public void getPublicKey_checkValues() throws Exception {

  EcdsaPrivateKey privateKey =
      factory.createKey(
          createKeyFormat(
              HashType.SHA256, EllipticCurveType.NIST_P256, EcdsaSignatureEncoding.DER));
  EcdsaPublicKey publicKey = manager.getPublicKey(privateKey);
  assertThat(publicKey).isEqualTo(privateKey.getPublicKey());
}