@Test
public void testGeneratorWithDuppedChapterName() throws TubainaException, IOException {
String fileContent = "[chapter qualquer um]\n"
+ "alguma coisa\n[chapter qualquer um]outra coisa";
BookBuilder builder = builder("com-erro");
builder.addReaderFromString(fileContent);
try {
Book b = builder.build();
new HtmlModule().inject(b);
generator.generate(b, temp);
Assert.fail("Should raise an exception");