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

    try {
        crypto.addCACertificateToTrustStore(new File("something"), "");
    } catch (CryptoException e) {
        fail("testAddCACertificateToTrustStoreEmptyAlias should not throw CryptoException. Error: " + e.getMessage());
    }
}