@Test
public void testAddUsernameAndPasswordForService() throws CMException, URISyntaxException {

	String alias = credentialManager.addUsernameAndPasswordForService(usernamePassword,serviceURI);
	
	UsernamePassword 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()));
}