etalonEvents.add(new ScalarEvent(null, null, new ImplicitTuple(true, false), "string",
dummyMark, dummyMark, (char) 0));
etalonEvents.add(new ScalarEvent(null, null, new ImplicitTuple(true, false), "abcd",
dummyMark, dummyMark, (char) 0));
etalonEvents.add(new MappingEndEvent(dummyMark, dummyMark));
etalonEvents.add(new DocumentEndEvent(dummyMark, dummyMark, false));
etalonEvents.add(new StreamEndEvent(dummyMark, dummyMark));
while (parser.checkEvent(null)) {
Event event = parser.getEvent();
if (etalonEvents.isEmpty()) {
fail("unexpected event: " + event);