@Test
public void testProcessDDMFormInstanceReportWithExistingData()
	throws Exception {

	DDMFormFieldValue ddmFormFieldValue = mock(DDMFormFieldValue.class);
	when(
		ddmFormFieldValue.getName()
	).thenReturn(
		"field1"
	);
	when(
		ddmFormFieldValue.getType()
	).thenReturn(
		DDMFormFieldType.RADIO
	);
	Value value = new LocalizedValue();
	value.addString(value.getDefaultLocale(), "option1");
	value.setDefaultLocale(LocaleUtil.US);
	when(
		ddmFormFieldValue.getValue()
	).thenReturn(
		value
	);
	JSONObject processedFieldJSONObject =
		_radioDDMFormFieldTypeReportProcessor.process(
			ddmFormFieldValue,
			JSONUtil.put(
				"type", DDMFormFieldType.RADIO
			).put(
				"values", JSONFactoryUtil.createJSONObject("{option1 : 1}")
			),
			0, DDMFormInstanceReportConstants.EVENT_ADD_RECORD_VERSION);
	JSONObject valuesJSONObject = processedFieldJSONObject.getJSONObject(
		"values");
	Assert.assertEquals(2, valuesJSONObject.getLong("option1"));
}