// 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);
assertEquals("Wall Street", loadedHouse.getStreet());
assertEquals(1, loadedHouse.getNumber());
assertEquals(1, loadedHouse2.getNumber());