public void testDumpEscapedTag() {
Académico obj = new Académico();
obj.setId(123);
obj.setName("Foo bar 123");
Representer repr = new Representer();
repr.addClassTag(Académico.class, new Tag("!Académico"));
Yaml yaml = new Yaml(repr);
String result = yaml.dump(obj);
assertEquals("!Acad%C3%A9mico {id: 123, name: Foo bar 123}\n", result);
}