@Test
public void testDeleteTrustedCertificate() throws CMException {

	// The Credential Manage's Truststore is empty initially so this should 
	// have no effect apart from initializing the Keystore/Truststore
	credentialManager.deleteTrustedCertificate("somealias");
	
	String alias = credentialManager.addTrustedCertificate(trustedCertficate);
	assertTrue(credentialManager.hasEntryWithAlias(CredentialManager.KeystoreType.TRUSTSTORE, alias));
	credentialManager.deleteTrustedCertificate(alias);
	assertFalse(credentialManager.hasTrustedCertificate(trustedCertficate));
	assertFalse(credentialManager.hasEntryWithAlias(CredentialManager.KeystoreType.TRUSTSTORE, alias));
}