### Question:
YAML extends RapidoidThing { public static <T> T parse(String yaml) { try { return (T) MAPPER.readValue(yaml, Object.class); } catch (Exception e) { throw new RuntimeException(e); } }  static String stringify(Object value); static void stringify(Object value, OutputStream out); static T parse(String yaml); static T parse(String yaml, Class<T> valueType); static T parse(byte[] yaml, Class<T> valueType); static T parse(String yaml, TypeReference<T> valueType); static T parse(byte[] yaml, TypeReference<T> valueType); @SuppressWarnings("unchecked") static Map<String, Object> parseMap(String yaml); static final ObjectMapper MAPPER; }### Answer:
@Test public void parseBeans() { String yaml = new String(TestIO.loadRes("persons.yaml")); List<User> persons = YAML.parse(yaml, personList); eq(persons.size(), 2); User p1 = persons.get(0); eq(p1.id, 123); eq(p1.name, "John Doe"); eq(p1.age, 50); User p2 = persons.get(1); eq(p2.name, "Highlander"); eq(p2.age, 900); }