"/map/stuff[@name='fruit']",
list("apple", "banana"));
}
public void testMapOfMaps() {
TestBean bean = (TestBean) context.getContextBean();
Map fruit = new HashMap();
fruit.put("apple", "green");
fruit.put("orange", "red");
Map meat = new HashMap();
meat.put("pork", "pig");
meat.put("beef", "cow");
bean.getMap().put("fruit", fruit);
bean.getMap().put("meat", meat);
assertXPathPointer(
context,
"//beef",
"/map[@name='meat'][@name='beef']");