@org.junit.Test
public void testEager() throws Exception {
TestShell shell = new TestShell();
shell.addAlias("cmd", "org.jnode.test.shell.syntax.RepeatSyntaxTest$Test");
shell.addSyntax("cmd", new SequenceSyntax(new RepeatSyntax(null, new ArgumentSyntax("arg1"), 0,
Integer.MAX_VALUE, true, null), new RepeatSyntax(new ArgumentSyntax("arg2"))));
CommandLine cl = new CommandLine(new Token("cmd"), new Token[] {}, null);
CommandInfo cmdInfo = cl.parseCommandLine(shell);
Command cmd = cmdInfo.createCommandInstance();
Assert.assertEquals(0, cmd.getArgumentBundle().getArgument("arg1").getValues().length);