CommandsMngrImpl implements ICommandsMngr { @Override public List<ParsingError> validate( Application app, String commandText ){ CommandsParser parser = new CommandsParser( app, commandText ); return parser.getParsingErrors(); } CommandsMngrImpl( Manager manager ); @Override void createOrUpdateCommand( Application app, String commandName, String commandText ); @Override void deleteCommand( Application app, String commandName ); @Override List<String> listCommands( Application app ); @Override String getCommandInstructions( Application app, String commandName ); @Override List<ParsingError> validate( Application app, String commandText ); @Override int getHistoryNumberOfPages( int itemsPerPage, String applicationName ); @Override List<CommandHistoryItem> getHistory(
			int start,
			int maxEntry,
			String sortCriteria,
			String sortingOrder,
			String applicationName ); @Override void execute( Application app, String commandName, int origin, String originDetails ); @Override void execute(
			Application app,
			String commandName,
			CommandExecutionContext executionContext,
			int origin,
			String originDetails );  }
@Test public void testValidate() { List<ParsingError> errors = this.cmdMngr.validate( this.app, "deploy and start all /tomcat-vm" ); Assert.assertEquals( 0, errors.size()); errors = this.cmdMngr.validate( this.app, "This is not a command..." ); Assert.assertEquals( 2, errors.size()); }