@Test
public void testValidationExpressionWithEmptyNumericField()
	throws Exception {

	DDMForm ddmForm = new DDMForm();
	DDMFormField ddmFormField = createDDMFormField(
		"field0", "numeric", FieldConstants.INTEGER);
	DDMFormFieldValidation ddmFormFieldValidation =
		new DDMFormFieldValidation();
	ddmFormFieldValidation.setDDMFormFieldValidationExpression(
		new DDMFormFieldValidationExpression() {
			{
				setName("lt");
				setValue("field0<{parameter}");
			}
		});
	ddmFormFieldValidation.setErrorMessageLocalizedValue(
		DDMFormValuesTestUtil.createLocalizedValue(
			"This field should be less than zero.", LocaleUtil.US));
	ddmFormFieldValidation.setParameterLocalizedValue(
		DDMFormValuesTestUtil.createLocalizedValue("0", LocaleUtil.US));
	ddmFormField.setDDMFormFieldValidation(ddmFormFieldValidation);
	ddmForm.addDDMFormField(ddmFormField);
	DDMFormValues ddmFormValues = DDMFormValuesTestUtil.createDDMFormValues(
		ddmForm);
	ddmFormValues.addDDMFormFieldValue(
		DDMFormValuesTestUtil.createDDMFormFieldValue(
			"field0_instanceId", "field0", new UnlocalizedValue("")));
	DDMFormEvaluatorEvaluateResponse ddmFormEvaluatorEvaluateResponse =
		doEvaluate(ddmForm, ddmFormValues);
	Map<DDMFormEvaluatorFieldContextKey, Map<String, Object>>
		ddmFormFieldsPropertyChanges =
			ddmFormEvaluatorEvaluateResponse.
				getDDMFormFieldsPropertyChanges();
	Assert.assertEquals(
		ddmFormFieldsPropertyChanges.toString(), 0,
		ddmFormFieldsPropertyChanges.size());
}