@Test
public void testSetTrustConfirmationProviders() throws IOException {

	List<TrustConfirmationProvider> trustConfirmationProviders = new ArrayList<TrustConfirmationProvider>();
	TrustConfirmationProvider trustConfirmationProvider = new TrustAlwaysTrustConfirmationProvider();
	trustConfirmationProviders.add(trustConfirmationProvider);
	
	credentialManager.setTrustConfirmationProviders(trustConfirmationProviders);
	
	assertTrue(credentialManager.getTrustConfirmationProviders().contains(trustConfirmationProvider));
	
	// Set it to null and see what happens
	credentialManager.setTrustConfirmationProviders(null);		
	assertNull(credentialManager.getTrustConfirmationProviders());	
}