DocumentHeader header = asciidoctor.readDocumentHeader(new File("target/test-classes/documentheaders.asciidoc"));
List<Author> authors = header.getAuthors();
assertThat(authors, hasSize(2));
Author author1 = authors.get(0);
assertThat(author1.getEmail(), is("doc.writer@asciidoc.org"));
assertThat(author1.getFullName(), is("Doc Writer"));
assertThat(author1.getFirstName(), is("Doc"));
assertThat(author1.getLastName(), is("Writer"));
assertThat(author1.getInitials(), is("DW"));
Author author2 = authors.get(1);
assertThat(author2.getEmail(), is("john.smith@asciidoc.org"));
assertThat(author2.getFullName(), is("John Smith"));
assertThat(author2.getFirstName(), is("John"));
assertThat(author2.getLastName(), is("Smith"));
assertThat(author2.getInitials(), is("JS"));
}