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

	String alias = credentialManager.addKeyPair(privateKey, privateKeyCertChain);
	assertTrue(credentialManager.hasKeyPair(privateKey, privateKeyCertChain));
	assertTrue(credentialManager.hasEntryWithAlias(CredentialManager.KeystoreType.KEYSTORE, alias));
	credentialManager.deleteKeyPair(alias);
	assertFalse(credentialManager.hasKeyPair(privateKey, privateKeyCertChain));
	assertFalse(credentialManager.hasEntryWithAlias(CredentialManager.KeystoreType.KEYSTORE, alias));
}