@Test
public void testProcessDDMFormInstanceReportOnDeleteEvent()
	throws Exception {

	DDMFormFieldValue ddmFormFieldValue = _mockDDMFormFieldValue(
		"field1", JSONUtil.put("option1", "option2"));
	JSONObject processedFieldJSONObject =
		_gridDDMFormFieldTypeReportProcessor.process(
			ddmFormFieldValue,
			JSONUtil.put(
				"type", DDMFormFieldType.GRID
			).put(
				"values",
				JSONFactoryUtil.createJSONObject(
					"{option1 : {option1 : 1, option2 : 1}}")
			),
			_FORM_INSTANCE_RECORD_ID,
			DDMFormInstanceReportConstants.EVENT_DELETE_RECORD_VERSION);
	JSONObject valuesJSONObject = processedFieldJSONObject.getJSONObject(
		"values");
	JSONObject rowJSONObject = valuesJSONObject.getJSONObject("option1");
	Assert.assertEquals(1, rowJSONObject.getLong("option1"));
	Assert.assertEquals(0, rowJSONObject.getLong("option2"));
	JSONObject structureJSONObject = processedFieldJSONObject.getJSONObject(
		"structure");
	_assertStructure(structureJSONObject);
}