return tokens.length - 1;
}
@Test
public void testSection() {
Section section = createSection("este é o texto da seção");
Book book = new BookBuilder("livro", new SectionsManager()).build();
new HtmlModule().inject(book);
new HtmlModule().inject(section);
String string = sectionToString.generateSection(book, "capitulo", 7, section, 4, 2).toString();
Assert.assertEquals(1, countOccurrences(string, "class=\"sectionChapter\">(\\s)*capitulo(\\s)*<"));