@Test (expected = CryptoException.class)
public void testAddCACertificateToTrustStoreInvalidCertFile() throws CryptoException {

    try {
        crypto.addCACertificateToTrustStore(new File("/bad-ca1.crt"), "abc");
    } catch (InvalidArgumentException e) {
        fail("testAddCACertificateToTrustStoreInvalidCertFile should not throw InvalidArgumentException. Error: " + e.getMessage());
    }
}