@Test
public void testDeleteKeyPair() throws CMException, KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException {

	// The Credential Manage's Keystore is empty initially so this should 
	// have no effect apart from initializing the Keystore/Truststore
	credentialManager.deleteKeyPair("somealias");
	
	String alias = credentialManager.addKeyPair(privateKey, privateKeyCertChain);
	credentialManager.deleteKeyPair(alias);
	assertFalse(credentialManager.hasEntryWithAlias(CredentialManager.KeystoreType.KEYSTORE, alias));
}