@Test
public void testExctractPublicKeyDefault() {

    PrivateKey privateKey = mock(PrivateKey.class);
    when(privateKey.getAlgorithm()).thenReturn("TestAlgo");
    assertThrows(CryptoException.class, () -> {
        Crypto.extractPublicKey(privateKey);
    });
}