@Test
public void testNumericFieldTemplateContext() throws Exception {

	// Dynamic data mapping form
	DDMForm ddmForm = DDMFormTestUtil.createDDMForm();
	String formFieldLabel = String.format(_HTML_WRAPPER, "label");
	String formFieldTip = String.format(_HTML_WRAPPER, "tip");
	String formFieldPlaceholder = String.format(
		_HTML_WRAPPER, "placeHolder");
	String formFieldTooltip = String.format(_HTML_WRAPPER, "toolTip");
	ddmForm.addDDMFormField(
		DDMFormTestUtil.createNumericDDMFormField(
			"Field1", formFieldLabel, "integer", false, false, true,
			formFieldTip, formFieldPlaceholder, formFieldTooltip));
	mockDDMFormFieldTypeServicesTracker(
		"numeric",
		_ddmFormFieldTemplateContextContributorTestHelper.
			createNumericDDMFormFieldTemplateContextContributor());
	// Dynamic data mapping form layout
	DDMFormLayout ddmFormLayout = new DDMFormLayout();
	ddmFormLayout = createDDMFormLayoutPage(
		ddmFormLayout, "Page 1", "Page 1 Description", "Field1");
	// Template context
	DDMFormPagesTemplateContextFactory ddmFormPagesTemplateContextFactory =
		createDDMFormPagesTemplateContextFactory(
			ddmForm, ddmFormLayout, null, false, true, true);
	List<Object> pages = ddmFormPagesTemplateContextFactory.create();
	Map<String, Object> fieldTemplateContext = getFieldTemplateContext(
		pages);
	Assert.assertEquals(formFieldLabel, fieldTemplateContext.get("label"));
	Assert.assertEquals(
		formFieldPlaceholder, fieldTemplateContext.get("placeholder"));
	Assert.assertEquals(formFieldTip, fieldTemplateContext.get("tip"));
	Assert.assertEquals(
		formFieldTooltip, fieldTemplateContext.get("tooltip"));
}