public class AlternativeInputCommandTest extends ManualAlternativeInputCommandTest {
public void testCommandDefinition()
{
AlternativeInputCommand command = new AlternativeInputCommand(new String[] { "one", "two" });
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"));