"tocsample.html"), "UTF-8");
Elements tocElement = doc.select("div.toc");
assertThat(tocElement.hasClass("toc"), is(true));
Element tocParagraph = doc.select("a[href=#_first_chapter]").first();
assertThat(tocParagraph.text(), startsWith("1."));
}
@Test
public void setting_toc_attribute_and_numbered_in_array_form_table_of_contents_should_be_generated() throws IOException {