XMLOutputter out = new XMLOutputter();
for (Map.Entry<String,String> me : totest.entrySet()) {
if (!me.getValue().equals(out.escapeElementEntities(me.getKey()))) {
assertEquals("Failed attempt to escape '" + me.getKey() + "'",
me.getValue(), out.escapeElementEntities(me.getKey()));
}
}
}