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

	// Initially empty so this
	assertTrue(credentialManager.getServiceURIsForAllUsernameAndPasswordPairs().isEmpty());
	
	credentialManager.addUsernameAndPasswordForService(usernamePassword, serviceURI);
	
	URI serviceURI2 = new URI("http://someservice2");
	UsernamePassword usernamePassword2 = new UsernamePassword("testuser2", "testpasswd2");
	credentialManager.addUsernameAndPasswordForService(usernamePassword2, serviceURI2);
	
	List<URI> serviceURIs = credentialManager.getServiceURIsForAllUsernameAndPasswordPairs();
	assertTrue(credentialManager.getServiceURIsForAllUsernameAndPasswordPairs().size() == 2);
	assertTrue(serviceURIs.contains(serviceURI));
	assertTrue(serviceURIs.contains(serviceURI2));
}