### Question:
Page { public List<HtmlElement> findAllHeadingTags() { return htmlPage.getByXPath(" } Page(HtmlPage htmlPage); List<HtmlLabel> findAllLabelTags(); List<HtmlInput> findAllInputTags(); List<HtmlSelect> findAllSelectTags(); List<HtmlTextArea> findAllTextareaTags(); List<HtmlImage> findAllImageTags(); List<HtmlTable> findAllTableTags(); List<HtmlBlink> findAllBlinkTags(); List<HtmlMarquee> findAllMarqueeTags(); List<HtmlAbbreviated> findAllAbbreviationTags(); List<HtmlAcronym> findAllAcronymTags(); List<HtmlBold> findAllBoldTags(); List<HtmlItalic> findAllItalicTags(); List<HtmlHtml> findAllHtmlTags(); List<HtmlTableCell> findAllTableHeaders(); List<HtmlElement> findAllHeadingTags(); List<HtmlMeta> findAllMetaTags(); List<HtmlUnorderedList> findAllUnorderedLists(); List<HtmlOrderedList> findAllOrderedLists(); List<HtmlInlineFrame> findAllInlineFrameTags(); HtmlElement findHtmlElementById(String elementId); List<HtmlFrame> findAllFrameTags(); List<HtmlArea> findAllAreaTags(); List<HtmlUnknownElement> findAllAppletTags(); List<HtmlDefinitionList> findAllDefinitionLists(); List<HtmlObject> findAllObjectTags(); List<HtmlAnchor> findAllAnchorTags(); List<HtmlFieldSet> findAllFieldsetTags(); List<HtmlBaseFont> findAllBasefontTags(); List<HtmlCenter> findAllCenterTags(); List<HtmlTitle> findAllTitleTags(); List<HtmlElement> findAllElementsWithAttribute(String attributeName); HtmlElement findHtmlTag(); DocumentType getDoctype(); List<HtmlFont> findAllFontTags(); List<HtmlTeletype> findAllTeletypeTags(); List<HtmlUnderlined> findAllUnderlineTags();  }### Answer:
@Test public void findAllHeadingTagsReturnsHeadingsOfEveryLevel() throws Exception { String content = "<html><body>" + "<h1>First Heading</h1>" + "<h2>Second Heading</h2>" + "<h3>Third Heading</h3>" + "<h4>Fourth Heading</h4>" + "<h5>Fifth Heading</h5>" + "<h6>Sixth Heading</h6>" + "</body></html>"; List<HtmlElement> headings = new Page(toHtmlPage(content)).findAllHeadingTags(); assertNotNull(headings); assertEquals(6, headings.size()); for (int i = 1; i < 7; i++) { boolean found = false; for (HtmlElement heading : headings) { if (heading.getTagName().equals("h" + i)) { found = true; } } assertTrue(found); } }