void () { final MyElement element = createElement("<a>" + "<child-element>" + " <child-element/>" + "</child-element>" + "</a>"); for (int i = 0; i < 239; i++) { final List<MyElement> children = element.getChildElements(); final MyElement child = children.get(0); final List<MyElement> children1 = child.getChildElements(); final MyElement child1 = children1.get(0); assertNotNull(child1.getChild()); } }