void () { configureByFiles(null, BASE_PATH + "BillionLaughs.xml"); XmlFile file = (XmlFile)getFile(); int[] count = {0}; XmlUtil.processXmlElements(file.getRootTag(), element -> { count[0]++; return true;}, false); assertEquals(9, count[0]); }