// XMLIntrospectorHelper.setLog(log);
// log = new SimpleLog("[testReadMap:MapEntryAdder]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// MapEntryAdder.setLog(log);
BeanReader reader = new BeanReader();
// log = new SimpleLog("[testReadMap:BeanReader]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// reader.setLog(log);
// log = new SimpleLog("[testReadMap:XMLIntrospector]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// reader.getXMLIntrospector().setLog(log);
reader.getBindingConfiguration().setMapIDs(false);
reader.registerBeanClass("address-book", MapBean.class);
bean = (MapBean) reader.parse(new StringReader(xml));
assertEquals("Title property is incorrect", "drinkers", bean.getTitle());
assertEquals("Map entries", 3, bean.getAddresses().size());
AddressBean address = (AddressBean) bean.getAddresses().get("Russell McManus");