TagToken token = new TagToken(new TagTuple("!foo", "!bar"), mark, mark);
assertEquals("value=[!foo, !bar]", token.getArguments());
}
public void testNoMarks() {
Mark mark = new Mark("test1", 0, 0, 0, "*The first line.\nThe last line.", 0);
try {
new TagToken(new TagTuple("!foo", "!bar"), null, mark);
fail("Token without start mark should not be accepted.");
} catch (YAMLException e) {
assertEquals("Token requires marks.", e.getMessage());