@Test
public void testSetServiceUsernameAndPasswordProviders() throws URISyntaxException {

	
	List<ServiceUsernameAndPasswordProvider> serviceUsernameAndPasswordProviders = new ArrayList<ServiceUsernameAndPasswordProvider>();
	ServiceUsernameAndPasswordProvider serviceUsernameAndPasswordProvider = new DummyServiceUsernameAndPasswordProvider();
	serviceUsernameAndPasswordProvider.setServiceUsernameAndPassword(new URI("http://someservice"), new UsernamePassword("blah", "blah"));
	serviceUsernameAndPasswordProviders.add(serviceUsernameAndPasswordProvider);
	
	credentialManager.setServiceUsernameAndPasswordProviders(serviceUsernameAndPasswordProviders);
	
	assertTrue(credentialManager.getServiceUsernameAndPasswordProviders().contains(serviceUsernameAndPasswordProvider));
	
	// Set it to null and see what happens
	credentialManager.setServiceUsernameAndPasswordProviders(null);		
	assertNull(credentialManager.getServiceUsernameAndPasswordProviders());	
}