public void testBookWithChapterOutsideParts() throws Exception {
String chapter0 = "[chapter capitulo zero]";
String chapter1 = "[part \"parte um\"]\n" + "[chapter capitulo um]\n" + "introducao do capitulo um\n"
+ "[section secao um]\n" + "conteudo da secao um";
builder.addReaderFromStrings(Arrays.asList(chapter0, chapter1));
Book b = builder.build();
module.inject(b);
BookPart bookPart = b.getParts().get(1);
Chapter chapter = bookPart.getChapters().get(0);
assertEquals("capitulo um", chapter.getTitle());
assertEquals("secao um", chapter.getSections().get(0).getTitle());
assertEquals("parte um", bookPart.getTitle());
assertEquals(true, bookPart.isPrintable());
assertEquals(false, b.getParts().get(0).isPrintable());
}