Syntax syntax1 = new SequenceSyntax(new ArgumentSyntax("fileArg"));
Assert.assertEquals("<fileArg>", syntax1.format(test.getArgumentBundle()));
Syntax syntax2 =
new SequenceSyntax(new RepeatSyntax(new ArgumentSyntax("fileArg")),
new ArgumentSyntax("intArg"));
Assert.assertEquals("[ <fileArg> ... ] <intArg>", syntax2.format(test.getArgumentBundle()));
Syntax syntax3 = new SequenceSyntax();
Assert.assertEquals("", syntax3.format(test.getArgumentBundle()));
}
@org.junit.Test