@Test
public void testSetTrustStoreDuplicateCert() {

    try {
        crypto.addCACertificateToTrustStore(testCACert, "ca"); //KeyStore overrides existing cert if same alias
    } catch (Exception e) {
        fail("testSetTrustStoreDuplicateCert should not have thrown Exception. Error: " + e.getMessage());
    }
}