@Test
public void testCreateDDMFormFieldValueNestedField() {

	DDMFormField ddmFormField = _createDDMFormField(
		"parent", "fieldset", true);
	ddmFormField.addNestedDDMFormField(
		_createDDMFormField("child", "text", true));
	List<DDMFormFieldValue> ddmFormFieldValues =
		_defaultMapToDDMFormValuesConverterStrategy.
			createDDMFormFieldValues(
				HashMapBuilder.<String, Object>put(
					"parent",
					HashMapBuilder.<String, Object>put(
						"instanceId",
						HashMapBuilder.<String, Object>put(
							"child",
							HashMapBuilder.<String, Object>put(
								"en_US", "Child Value 1"
							).put(
								"pt_BR", "Filho Valor 1"
							).build()
						).build()
					).build()
				).build(),
				ddmFormField, null, null);
	DDMFormFieldValue ddmFormFieldValue = ddmFormFieldValues.get(0);
	Assert.assertEquals("parent", ddmFormFieldValue.getName());
	Map<String, List<DDMFormFieldValue>> nestedDDMFormFieldValuesMap =
		ddmFormFieldValue.getNestedDDMFormFieldValuesMap();
	Assert.assertTrue(nestedDDMFormFieldValuesMap.containsKey("child"));
	List<DDMFormFieldValue> nestedDDMFormFieldValues =
		nestedDDMFormFieldValuesMap.get("child");
	DDMFormFieldValue nestedDDMFormFieldValue =
		nestedDDMFormFieldValues.get(0);
	Value value = nestedDDMFormFieldValue.getValue();
	Assert.assertTrue(value instanceof LocalizedValue);
	LocalizedValue localizedValue = (LocalizedValue)value;
	Assert.assertEquals(
		"Child Value 1", localizedValue.getString(LocaleUtil.ENGLISH));
	Assert.assertEquals(
		"Filho Valor 1", localizedValue.getString(LocaleUtil.BRAZIL));
}