@Test
public void testSetConfiguration() {

	Map<String,String> map = new HashMap<>( 0 );
	Assert.assertFalse( this.factory.setConfiguration( map ));
	map.put( MessagingConstants.MESSAGING_TYPE_PROPERTY, "whatever" );
	Assert.assertFalse( this.factory.setConfiguration( map ));
	map.put( MessagingConstants.MESSAGING_TYPE_PROPERTY, FACTORY_RABBITMQ );
	Assert.assertTrue( this.factory.setConfiguration( map ));
	Assert.assertEquals( DEFAULT_IP, this.factory.configuration.get( RABBITMQ_SERVER_IP ));
	Assert.assertEquals( GUEST, this.factory.configuration.get( RABBITMQ_SERVER_USERNAME ));
	Assert.assertEquals( GUEST, this.factory.configuration.get( RABBITMQ_SERVER_PASSWORD ));
	map.put( RABBITMQ_SERVER_IP, "127.0.0.1" );
	map.put( RABBITMQ_SERVER_USERNAME, "bob" );
	map.put( RABBITMQ_SERVER_PASSWORD, "2" );
	Assert.assertTrue( this.factory.setConfiguration( map ));
	Assert.assertEquals( "127.0.0.1", this.factory.configuration.get( RABBITMQ_SERVER_IP ));
	Assert.assertEquals( "bob", this.factory.configuration.get( RABBITMQ_SERVER_USERNAME ));
	Assert.assertEquals( "2", this.factory.configuration.get( RABBITMQ_SERVER_PASSWORD ));
}