}
@org.junit.Test
public void testFormat() {
Test test = new Test();
Syntax syntax1 = new RepeatSyntax(new ArgumentSyntax("arg1"));
Assert.assertEquals("[ <arg1> ... ]", syntax1.format(test.getArgumentBundle()));
Syntax syntax2 = new RepeatSyntax(new ArgumentSyntax("arg1"), 1, Integer.MAX_VALUE);
Assert.assertEquals("<arg1> ...", syntax2.format(test.getArgumentBundle()));
Syntax syntax3 = new RepeatSyntax(new ArgumentSyntax("arg1"), 1, 2);
Assert.assertEquals("<arg1> ...2", syntax3.format(test.getArgumentBundle()));
Syntax syntax4 = new RepeatSyntax(new ArgumentSyntax("arg1"), 3, 6);
Assert.assertEquals("<arg1> 3...6", syntax4.format(test.getArgumentBundle()));
}