@Test
public void testDDMFormSerialization() throws Exception {

	String expectedJSON = read("ddm-form-json-serializer-test-data.json");
	DDMForm ddmForm = createDDMForm();
	ddmForm.setDDMFormRules(createDDMFormRules());
	ddmForm.setDDMFormSuccessPageSettings(
		createDDMFormSuccessPageSettings());
	String actualJSON = serialize(ddmForm);
	JSONAssert.assertEquals(expectedJSON, actualJSON, false);
}