RadioDDMFormFieldTemplateContextContributor implements DDMFormFieldTemplateContextContributor { protected String getPredefinedValue( DDMFormField ddmFormField, DDMFormFieldRenderingContext ddmFormFieldRenderingContext) { LocalizedValue predefinedValue = ddmFormField.getPredefinedValue(); if (predefinedValue == null) { return null; } String predefinedValueString = GetterUtil.getString( predefinedValue.getString(ddmFormFieldRenderingContext.getLocale()), "[]"); return getValue(predefinedValueString); }  @Override Map<String, Object> getParameters(
		DDMFormField ddmFormField,
		DDMFormFieldRenderingContext ddmFormFieldRenderingContext);  }
@Test public void testGetPredefinedValue() { DDMFormField ddmFormField = createDDMFormField(); ddmFormField.setProperty("dataSourceType", "manual"); DDMFormFieldRenderingContext ddmFormFieldRenderingContext = new DDMFormFieldRenderingContext(); ddmFormFieldRenderingContext.setLocale(LocaleUtil.US); ddmFormFieldRenderingContext.setProperty( "options", createDDMFormOptions()); LocalizedValue predefinedValue = new LocalizedValue(LocaleUtil.US); predefinedValue.addString(LocaleUtil.US, "value"); ddmFormField.setProperty("predefinedValue", predefinedValue); Map<String, Object> parameters = _radioDDMFormFieldTemplateContextContributor.getParameters( ddmFormField, ddmFormFieldRenderingContext); Assert.assertEquals("value", parameters.get("predefinedValue")); }