public void testDumpCustomTag() {
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("!foo"));
Yaml yaml = new Yaml(repr);
String result = yaml.dump(obj);
assertEquals("!foo {id: 123, name: Foo bar 123}\n", result);
}