@Test
public void getPublicKey_correctValues() throws Exception {

  if (TestUtil.isTsan()) {
    // factory.createKey is too slow in Tsan.
    return;
  }
  RsaSsaPkcs1KeyFormat format = createKeyFormat(HashType.SHA256, 3072, RSAKeyGenParameterSpec.F4);
  RsaSsaPkcs1PrivateKey key = factory.createKey(format);
  assertThat(manager.getPublicKey(key)).isEqualTo(key.getPublicKey());
}