@Test
public void testConfigureFactory() throws Exception {

	String address = "http://roboconf.net/some/path";
	int port = 18547;
	String username = "toto";
	String password= "123456789";
	ConnectionFactory factory = new ConnectionFactory();
	Assert.assertNotSame( address, factory.getHost());
	Assert.assertNotSame( port, factory.getPort());
	Map<String,String> configuration = new HashMap<> ();
	configuration.put( RABBITMQ_SERVER_IP, "http://roboconf.net:" + port + "/some/path" );
	configuration.put( RABBITMQ_SERVER_USERNAME, username );
	configuration.put( RABBITMQ_SERVER_PASSWORD, password );
	RabbitMqUtils.configureFactory( factory, configuration );
	Assert.assertEquals( address, factory.getHost());
	Assert.assertEquals( port, factory.getPort());
	Assert.assertEquals( username, factory.getUsername());
	Assert.assertEquals( password, factory.getPassword());
}