assertEquals( "subfoo", a.getAttribute( "name" ) );
div = (HtmlDivision) elementIterator.next();
assertEquals( "subbar", div.getAttribute( "class" ) );
assertEquals( "subfoo", div.getAttribute( "id" ) );
h3 = (HtmlHeading3) elementIterator.next();
assertEquals( "Subsection name", h3.asText().trim() );
assertEquals( "", h3.getAttribute( "class" ) );
a = (HtmlAnchor) elementIterator.next();
assertEquals( "Subsection_name", a.getAttribute( "name" ) );
assertFalse( elementIterator.hasNext() );