@Test
public void testListCommands() throws Exception {

	Application inexisting = new Application( "inexisting", this.app.getTemplate());
	Assert.assertEquals( 0, this.cmdMngr.listCommands( inexisting ).size());
	Assert.assertEquals( 0, this.cmdMngr.listCommands( this.app ).size());
	this.cmdMngr.createOrUpdateCommand( this.app, "toto", "Good command");
	List<String> list = this.cmdMngr.listCommands( this.app );
	Assert.assertEquals( 1, list.size());
	Assert.assertEquals( "toto", list.get( 0 ));
	this.cmdMngr.createOrUpdateCommand( this.app, "before", "Good command");
	this.cmdMngr.createOrUpdateCommand( this.app, "toto2", "Good command");
	list = this.cmdMngr.listCommands( this.app );
	Assert.assertEquals( 3, list.size());
	Assert.assertEquals( "before", list.get( 0 ));
	Assert.assertEquals( "toto", list.get( 1 ));
	Assert.assertEquals( "toto2", list.get( 2 ));
	this.cmdMngr.deleteCommand( this.app, "toto" );
	list = this.cmdMngr.listCommands( this.app );
	Assert.assertEquals( 2, list.size());
	Assert.assertEquals( "before", list.get( 0 ));
	Assert.assertEquals( "toto2", list.get( 1 ));
}