@Test
public void testGetSignatureAlgorithmEC() {

    try {
        assertEquals(Crypto.getSignatureAlgorithm("ECDSA"), "SHA256withECDSA");
        assertEquals(Crypto.getSignatureAlgorithm("ECDSA", "SHA256"), "SHA256withECDSA");
        assertEquals(Crypto.getSignatureAlgorithm("ECDSA", "SHA1"), "SHA1withECDSA");
    } catch (NoSuchAlgorithmException e) {
        fail();
    }
}