@Test
public void testHasUsernamePasswordForService() throws CMException {


	UsernamePassword testUsernamePassword = credentialManager.getUsernameAndPasswordForService(serviceURI, false, "");
	assertNull(testUsernamePassword);
	String alias = credentialManager.addUsernameAndPasswordForService(usernamePassword,serviceURI);
	testUsernamePassword = credentialManager.getUsernameAndPasswordForService(serviceURI, false, "");
	assertNotNull(testUsernamePassword);
	assertTrue(credentialManager.hasEntryWithAlias(CredentialManager.KeystoreType.KEYSTORE, alias));
	assertTrue(Arrays.equals(usernamePassword.getPassword(), testUsernamePassword.getPassword()));
	assertTrue(usernamePassword.getUsername().equals(testUsernamePassword.getUsername()));
}