/**
* Test of getDocumentModel method, of class DocumentModelBuilder.
*/
public void testGetDocumentModel()
{
DocumentModel model = new DocumentModelBuilder( new ModelBuilderMavenProjectStub() ).getDocumentModel();
assertEquals( "ISO-8859-1", model.getModelEncoding() );
assertEquals( "Test ArtifactId", model.getOutputName() );
DocumentCover cover = model.getCover();
assertEquals( "Test Version", cover.getCoverVersion() );
assertEquals( "Test Name", cover.getProjectName() );
assertEquals( "Test Name", cover.getCoverTitle() );
assertEquals( "v. Test Version", cover.getCoverSubTitle() );
assertEquals( "Test Organization", cover.getCompanyName() );
assertEquals( 2, cover.getAuthors().size() );
assertFirstDocumentAuthor(cover.getAuthors().get( 0 ));
DocumentMeta meta = model.getMeta();
assertEquals( "Test Description", meta.getDescription() );
assertEquals( 2, meta.getAuthors().size() );
assertFirstDocumentAuthor(meta.getAuthors().get( 0 ));
assertEquals( "Test Name", meta.getSubject() );
assertEquals( "Test Name", meta.getTitle() );
DocumentTOC toc = model.getToc();
assertEquals( 0, toc.getItems().size() );
}