HtmlParagraph p = (HtmlParagraph) elementIterator.next();
element = elementIterator.next();
assertEquals( element.getTagName(), "b" );
assertEquals( element.asText().trim(), "Contributing" );
HtmlOrderedList ol = (HtmlOrderedList) elementIterator.next();
assertEquals( ol.getFirstChild().asText().trim(), "One stupid question & a silly answer?" );
HtmlListItem li = (HtmlListItem) elementIterator.next();
assertEquals( li.getFirstChild().asText().trim(), "One stupid question & a silly answer?" );
a = (HtmlAnchor) elementIterator.next();
assertEquals( a.getAttribute( "href" ), "#stupid-question" );
element = elementIterator.next();
assertEquals( element.getTagName(), "b" );
assertEquals( element.asText().trim(), "stupid" );
p = (HtmlParagraph) elementIterator.next();
element = elementIterator.next();
assertEquals( element.getTagName(), "b" );
assertEquals( element.asText().trim(), "Using Maven" );
ol = (HtmlOrderedList) elementIterator.next();
assertEquals( ol.getFirstChild().asText().trim(), "How do I disable a report on my site?" );
li = (HtmlListItem) elementIterator.next();
assertNotNull( li );
assertEquals( li.getFirstChild().asText().trim(), "How do I disable a report on my site?" );