@Test( expected = IOException.class )
public void testConfigureFactory_withSslEnabled_ioException() throws Exception {

	ConnectionFactory factory = Mockito.mock( ConnectionFactory.class );
	String trustPassPhrase = "trust store";
	File trustStore = generateKeyStore( trustPassPhrase, RabbitMqConstants.DEFAULT_SSL_TRUST_STORE_TYPE );
	Map<String,String> configuration = new HashMap<> ();
	configuration.put( RABBITMQ_SERVER_IP, "http://roboconf.net:18547/some/path" );
	configuration.put( RABBITMQ_SERVER_USERNAME, "toto" );
	configuration.put( RABBITMQ_SERVER_PASSWORD, "123456789" );
	configuration.put( RABBITMQ_SSL_KEY_STORE_PATH, "does not exist" );
	configuration.put( RABBITMQ_SSL_KEY_STORE_PASSPHRASE, "key store" );
	configuration.put( RABBITMQ_SSL_TRUST_STORE_PATH, trustStore.getAbsolutePath());
	configuration.put( RABBITMQ_SSL_TRUST_STORE_PASSPHRASE, trustPassPhrase );
	configuration.put( RABBITMQ_SSL_AS_USER_DATA, "true" );
	configuration.put( RABBITMQ_USE_SSL, "true" );
	RabbitMqUtils.configureFactory( factory, configuration );
}