@Test
public void testConfigureFactory_withoutSslEnabled() throws Exception {

	int port = 18547;
	ConnectionFactory factory = Mockito.mock( ConnectionFactory.class );
	Map<String,String> configuration = new HashMap<> ();
	configuration.put( RABBITMQ_SERVER_IP, "http://roboconf.net:" + port );
	configuration.put( RABBITMQ_SERVER_USERNAME, "toto" );
	configuration.put( RABBITMQ_SERVER_PASSWORD, "123456789" );
	configuration.put( RABBITMQ_SSL_KEY_STORE_PATH, this.folder.newFile().getAbsolutePath());
	configuration.put( RABBITMQ_SSL_KEY_STORE_PASSPHRASE, "key store" );
	configuration.put( RABBITMQ_SSL_TRUST_STORE_PATH, this.folder.newFile().getAbsolutePath());
	configuration.put( RABBITMQ_SSL_TRUST_STORE_PASSPHRASE, "trust store" );
	configuration.put( RABBITMQ_SSL_AS_USER_DATA, "true" );
	RabbitMqUtils.configureFactory( factory, configuration );
	Mockito.verify( factory ).setUsername( "toto" );
	Mockito.verify( factory ).setPassword( "123456789" );
	Mockito.verify( factory ).setHost( "http://roboconf.net" );
	Mockito.verify( factory ).setPort( port );
	Mockito.verify( factory ).setConnectionTimeout( Mockito.anyInt());
	Mockito.verify( factory ).setAutomaticRecoveryEnabled( true );
	Mockito.verify( factory ).setNetworkRecoveryInterval( Mockito.anyInt());
	Mockito.verify( factory ).setTopologyRecoveryEnabled( true );
	Mockito.verifyZeroInteractions( factory );
}