@Test
public void testPageTitle() throws Exception {

	// Dynamic data mapping form
	DDMForm ddmForm = DDMFormTestUtil.createDDMForm();
	// Dynamic data mapping form layout
	DDMFormLayout ddmFormLayout = new DDMFormLayout();
	String pageTitle = String.format(_HTML_WRAPPER, "titlePage");
	DDMFormLayoutPage ddmFormLayoutPage1 = createDDMFormLayoutPage(
		pageTitle, "descriptionPage");
	ddmFormLayout.addDDMFormLayoutPage(ddmFormLayoutPage1);
	// Template context
	DDMFormPagesTemplateContextFactory ddmFormPagesTemplateContextFactory =
		createDDMFormPagesTemplateContextFactory(
			ddmForm, ddmFormLayout, null, false, true, true);
	List<Object> pages = ddmFormPagesTemplateContextFactory.create();
	Map<String, Object> pageTemplateContext =
		(Map<String, Object>)pages.get(0);
	Assert.assertEquals(pageTitle, pageTemplateContext.get("title"));
}