assertTrue("No test files found.", files.length > 0);
for (int i = 0; i < files.length; i++) {
String content = getResource(files[i].getName());
List<Event> document = (List<Event>) load(new EventConstructor(), content.trim());
Writer writer = new StringWriter();
Emitter emitter = new Emitter(writer, new DumperOptions());
try {
for (Event event : document) {
emitter.emit(event);
}
fail("Loading must fail for " + files[i].getAbsolutePath());
// System.err.println("Loading must fail for " +
// files[i].getAbsolutePath());
} catch (Exception e) {