@Test
public void testAddTrustedCertificate() throws CMException {

	
	String alias = credentialManager.addTrustedCertificate(trustedCertficate);
	assertTrue(credentialManager.hasTrustedCertificate(trustedCertficate));
	assertTrue(credentialManager.hasEntryWithAlias(CredentialManager.KeystoreType.TRUSTSTORE, alias));
	credentialManager.deleteTrustedCertificate(alias);
	assertFalse(credentialManager.hasTrustedCertificate(trustedCertficate));
	assertFalse(credentialManager.hasEntryWithAlias(CredentialManager.KeystoreType.TRUSTSTORE, alias));
}