Yaml beanDumper = new Yaml();
String yaml = beanDumper.dumpAsMap(house);
String etalon = Util.getLocalResource("javabeans/house-dump3.yaml");
assertEquals(etalon, yaml);
// load
TypeDescription description = new TypeDescription(House.class);
description.putListPropertyType("rooms", Room.class);
Yaml beanLoader = new Yaml(new Constructor(description));
House loadedHouse = (House) beanLoader.load(yaml);
House loadedHouse2 = (House) beanLoader.loadAs(yaml, House.class);
assertNotNull(loadedHouse);
assertFalse(loadedHouse == loadedHouse2);