@SuppressWarnings({ "unchecked", "rawtypes" })
public void testDictSafeConstructor() {
Map value = new TreeMap();
value.put("abc", "www");
value.put("qwerty", value);
Yaml yaml = new Yaml(new SafeConstructor());
String output1 = yaml.dump(value);
assertEquals("&id001\nabc: www\nqwerty: *id001\n", output1);
Map value2 = (Map) yaml.load(output1);
assertEquals(2, value2.size());
assertEquals("www", value2.get("abc"));