public void testDumpCustomJavaClass() {
Hero hero = new Hero("Galain Ysseleg", -3, 2);
DumperOptions options = new DumperOptions();
options.setAllowReadOnlyProperties(true);
Yaml yaml = new Yaml(options);
String output = yaml.dump(hero);
assertEquals("!!examples.Hero {hp: -3, name: Galain Ysseleg, sp: 2}\n", output);
}
public void testDumperOptions() {
List<Integer> data = new ArrayList<Integer>();