RadioDDMFormFieldTemplateContextContributor implements DDMFormFieldTemplateContextContributor { protected String getValue(String valueString) { try { JSONArray jsonArray = jsonFactory.createJSONArray(valueString); return GetterUtil.getString(jsonArray.get(0)); } catch (JSONException jsonException) { if (_log.isDebugEnabled()) { _log.debug(jsonException, jsonException); } return valueString; } }  @Override Map<String, Object> getParameters(
		DDMFormField ddmFormField,
		DDMFormFieldRenderingContext ddmFormFieldRenderingContext);  }
@Test public void testGetValue() { DDMFormField ddmFormField = createDDMFormField(); ddmFormField.setProperty("dataSourceType", "manual"); DDMFormFieldRenderingContext ddmFormFieldRenderingContext = new DDMFormFieldRenderingContext(); ddmFormFieldRenderingContext.setLocale(LocaleUtil.US); ddmFormFieldRenderingContext.setProperty( "options", createDDMFormOptions()); ddmFormFieldRenderingContext.setValue("value"); Map<String, Object> parameters = _radioDDMFormFieldTemplateContextContributor.getParameters( ddmFormField, ddmFormFieldRenderingContext); Assert.assertEquals("value", parameters.get("value")); }