//
Node node = yaml.represent(list);
// System.out.println(node);
assertEquals(
"Representation tree from an object and from its YAML document must be the same.",
yaml.compose(new StringReader(etalon)).toString(), node.toString());
//
List<Event> events = yaml.serialize(node);
int i = 0;
for (Event etalonEvent : yaml.parse(new StringReader(etalon))) {
Event ev1 = events.get(i++);