RadioDDMFormFieldTemplateContextContributor implements DDMFormFieldTemplateContextContributor { protected List<Object> getOptions( DDMFormField ddmFormField, DDMFormFieldRenderingContext ddmFormFieldRenderingContext) { RadioDDMFormFieldContextHelper radioDDMFormFieldContextHelper = new RadioDDMFormFieldContextHelper( getDDMFormFieldOptions( ddmFormField, ddmFormFieldRenderingContext), ddmFormFieldRenderingContext.getLocale()); return radioDDMFormFieldContextHelper.getOptions( ddmFormFieldRenderingContext); }  @Override Map<String, Object> getParameters(
		DDMFormField ddmFormField,
		DDMFormFieldRenderingContext ddmFormFieldRenderingContext);  }
@Test public void testGetOptions() { DDMFormField ddmFormField = createDDMFormField(); ddmFormField.setProperty("dataSourceType", "manual"); DDMFormFieldRenderingContext ddmFormFieldRenderingContext = new DDMFormFieldRenderingContext(); ddmFormFieldRenderingContext.setLocale(LocaleUtil.US); ddmFormFieldRenderingContext.setProperty( "options", createDDMFormOptions()); Map<String, Object> parameters = _radioDDMFormFieldTemplateContextContributor.getParameters( ddmFormField, ddmFormFieldRenderingContext); Assert.assertTrue(parameters.containsKey("options")); List<Object> options = (List<Object>)parameters.get("options"); Assert.assertEquals(options.toString(), 2, options.size()); Map<String, String> option0 = (Map<String, String>)options.get(0); Assert.assertEquals("Label 0", option0.get("label")); Assert.assertEquals("Value 0", option0.get("value")); Map<String, String> option1 = (Map<String, String>)options.get(1); Assert.assertEquals("Label 1", option1.get("label")); Assert.assertEquals("Value 1", option1.get("value")); }