@Test
public void testNestedDDMFormFieldValue() {

	DDMForm ddmForm = DDMFormTestUtil.createDDMForm();
	DDMFormField nameDDMFormField = DDMFormTestUtil.createTextDDMFormField(
		"Name", false, false, false);
	nameDDMFormField.addNestedDDMFormField(
		DDMFormTestUtil.createTextDDMFormField("Age", false, false, false));
	ddmForm.addDDMFormField(nameDDMFormField);
	DefaultDDMFormValuesFactory defaultDDMFormValuesFactory =
		new DefaultDDMFormValuesFactory(ddmForm, LocaleUtil.BRAZIL);
	DDMFormValues ddmFormValues = defaultDDMFormValuesFactory.create();
	List<DDMFormFieldValue> ddmFormFieldValues =
		ddmFormValues.getDDMFormFieldValues();
	DDMFormFieldValue nameDDMFormFieldValue = ddmFormFieldValues.get(0);
	Value nameValue = nameDDMFormFieldValue.getValue();
	Assert.assertEquals(
		StringPool.BLANK, nameValue.getString(LocaleUtil.BRAZIL));
	List<DDMFormFieldValue> nestedDDMFormFieldValues =
		nameDDMFormFieldValue.getNestedDDMFormFieldValues();
	DDMFormFieldValue ageDDMFormFieldValue = nestedDDMFormFieldValues.get(
		0);
	Value ageValue = ageDDMFormFieldValue.getValue();
	Assert.assertEquals(
		StringPool.BLANK, ageValue.getString(LocaleUtil.BRAZIL));
}