} catch (UnsupportedOperationException e) {
// succeeded
}
assertEquals("nothing inserted", size, innerFragments.size());
XMLFragment xmlFragment = innerFragments.get(0);
assertInnerXMLElement(xmlFragment, "inner", 2);
XMLFragment xmlFragmentDeep = ((XMLElement)xmlFragment).getInnerFragments().get(0);
assertInnerXMLElement(xmlFragmentDeep, "inner_x", 0);
xmlFragment = innerFragments.get(1);
assertInnerTextElement(xmlFragment, "payload_2");