DirectiveToken<String> token = new DirectiveToken<String>("TAG", list, mark, mark);
assertEquals("name=TAG, value=[!foo, !bar]", token.getArguments());
}
public void testList() {
Mark mark = new Mark("test1", 0, 0, 0, "*The first line.\nThe last line.", 0);
List<Integer> list = new ArrayList<Integer>();
list.add(new Integer(1));
list.add(new Integer(1));
DirectiveToken<Integer> token = new DirectiveToken<Integer>("YAML", list, mark, mark);
assertEquals("name=YAML, value=[1, 1]", token.getArguments());