@Test
public void testSetTrustStore() throws Throwable {

    try {
        CryptoPrimitives myCrypto = new CryptoPrimitives();
        KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
        keyStore.load(null, null);
        //     myCrypto.setTrustStore(keyStore);
        TestUtils.invokeMethod(myCrypto, "setTrustStore", keyStore);
        assertSame(keyStore, myCrypto.getTrustStore());
    } catch (CryptoException | KeyStoreException | NoSuchAlgorithmException | CertificateException | IOException e) {
        fail("testSetTrustStore() should not have thrown Exception. Error: " + e.getMessage());
    }
}