CommandDefinition commandDefinition = command.getCommandDefinition();
assertEquals(1, commandDefinition.getCommandInfos().size());
CommandInfo ci = commandDefinition.getCommandInfos().get(0);
String numberErrorMessage = "Invalid Selection. Selected number does not correspond with one of the values.\nPlease select a number between 1 and 2";
assertEquals(numberErrorMessage, ci.validate("-1"));
assertEquals(numberErrorMessage, ci.validate("3"));
String alphaErrorMessage = "Invalid Selection. Please select a number corresponding with one of the alternative choices";
assertEquals(alphaErrorMessage , ci.validate("a value"));
assertEquals(null, ci.validate("2"));