@Test (expected = InvalidArgumentException.class)
public void testAddCACertificateToTrustStoreNoCert() throws InvalidArgumentException {

    try {
        crypto.addCACertificateToTrustStore((Certificate) null, "abc");
    } catch (CryptoException e) {
        fail("testAddCACertificateToTrustStoreNoCert should not have thrown CryptoException. Error " + e.getMessage());
    }
}