@Test public void should_use_custom_appendix_caption_if_specified() throws IOException { Attributes attributes = attributes().appendixCaption("App").get(); Options options = options().inPlace(false).safe(SafeMode.UNSAFE) .toDir(testFolder.getRoot()).attributes(attributes).get(); asciidoctor.convertFile(classpath.getResource("appendix.asciidoc"), options); Document doc = Jsoup.parse(new File(testFolder.getRoot(), "appendix.html"), "UTF-8"); Element attributeElement = doc.getElementById("_attribute_options"); assertThat(attributeElement.text(), startsWith("App")); }