List<BookPart> bookParts = new BookPartsBuilder(new SectionsManager()).addChaptersToLastAddedPart(
Arrays.asList(chapter)).build();
BookPart part = bookParts.get(0);
new KindleModule().inject(part);
String generatedContent = partToKindle.generateKindlePart(part,
new TubainaHtmlDir(null, null, new KindleResourceManipulatorFactory()), 1).toString();
assertEquals(0, countOccurrences(generatedContent, "<h1>.*</h1>"));
assertEquals(1, countOccurrences(generatedContent, "<h2.*>\\d+ - chapter title</h2>"));
assertEquals(1, countOccurrences(generatedContent,
"<h3.*>\\W*\\d+\\.1 - section one\\W*</h3>"));
}