introductionChaptersToKindle = new IntroductionChaptersToKindle(parser, cfg, bookRoot);
}
@Test
public void shouldGenerateIntroductionChapters() throws Exception {
Chapter preface = new ChapterBuilder("preface", "label", "preface text", "", 0, true, new SectionsManager()).build();
new KindleModule().inject(preface);
String introductionChapters = introductionChaptersToKindle.generateIntroductionChapters(
Arrays.asList(preface)).toString();
assertTrue(introductionChapters.contains("<h2>preface</h2>"));
assertTrue(introductionChapters.contains("preface text"));