@Test
public void testIsKeyEntry() throws CMException {

	// The Credential Manage's Keystore/Truststore is empty initially so this should 
	// have no effect apart from initializing them
	// This should throw an exception
	assertFalse(credentialManager.isKeyEntry("somealias"));
	String aliasPassword = credentialManager.addUsernameAndPasswordForService(usernamePassword, serviceURI);
	String aliasKeyPair = credentialManager.addKeyPair(privateKey, privateKeyCertChain);
	String aliasTrustedCert = credentialManager.addTrustedCertificate(trustedCertficate);
	assertTrue(credentialManager.isKeyEntry(aliasPassword)); // passwords are saves as symmetric key entries
	assertTrue(credentialManager.isKeyEntry(aliasKeyPair));
	assertFalse(credentialManager.isKeyEntry(aliasTrustedCert));
}