@Test
public void testDDMFormFieldValuePredefinedValue() {

	DDMForm ddmForm = DDMFormTestUtil.createDDMForm();
	DDMFormField ddmFormField = DDMFormTestUtil.createTextDDMFormField(
		"Name", false, false, false);
	LocalizedValue predefinedValue = new LocalizedValue(LocaleUtil.US);
	predefinedValue.addString(LocaleUtil.BRAZIL, "Roberto");
	predefinedValue.addString(LocaleUtil.US, "Robert");
	ddmFormField.setPredefinedValue(predefinedValue);
	ddmForm.addDDMFormField(ddmFormField);
	DefaultDDMFormValuesFactory defaultDDMFormValuesFactory =
		new DefaultDDMFormValuesFactory(ddmForm, LocaleUtil.BRAZIL);
	DDMFormValues ddmFormValues = defaultDDMFormValuesFactory.create();
	List<DDMFormFieldValue> ddmFormFieldValues =
		ddmFormValues.getDDMFormFieldValues();
	DDMFormFieldValue ddmFormFieldValue = ddmFormFieldValues.get(0);
	Value value = ddmFormFieldValue.getValue();
	Assert.assertEquals("Roberto", value.getString(LocaleUtil.BRAZIL));
	defaultDDMFormValuesFactory = new DefaultDDMFormValuesFactory(
		ddmForm, LocaleUtil.SPAIN);
	ddmFormValues = defaultDDMFormValuesFactory.create();
	ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues();
	ddmFormFieldValue = ddmFormFieldValues.get(0);
	value = ddmFormFieldValue.getValue();
	Assert.assertEquals("Robert", value.getString(LocaleUtil.SPAIN));
}