public void testGenericMap() {
Yaml yaml = new Yaml();
MapProvider<String, Integer> listProvider = new MapProvider<String, Integer>();
listProvider.getMap().put("foo", 17);
listProvider.getMap().put("bar", 19);
String s = yaml.dumpAsMap(listProvider);
// System.out.println(s);
assertEquals("map:\n foo: 17\n bar: 19\n", s);
// parse
Yaml loader = new Yaml();
MapProvider<String, Integer> listProvider2 = loader.loadAs(s, MapProvider.class);