@Test
@SuppressWarnings({ "rawtypes", "unchecked" })

public void testSetConfiguration_dictionary() {
	Dictionary dictionary = new Hashtable();
	this.factory.setConfiguration( dictionary );
	dictionary.put( MessagingConstants.MESSAGING_TYPE_PROPERTY, "whatever" );
	this.factory.setConfiguration( dictionary );
	dictionary.put( MessagingConstants.MESSAGING_TYPE_PROPERTY, FACTORY_RABBITMQ );
	this.factory.setConfiguration( dictionary );
	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 ));
	dictionary.put( RABBITMQ_SERVER_IP, "127.0.0.1" );
	dictionary.put( RABBITMQ_SERVER_USERNAME, "bob" );
	dictionary.put( RABBITMQ_SERVER_PASSWORD, "2" );
	dictionary.put( "felix.fileinstall.filename", "sth" );
	this.factory.setConfiguration( dictionary );
	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 ));
	Assert.assertFalse( this.factory.configuration.containsKey( "felix.fileinstall.filename" ));
}