GridDDMFormFieldContextHelper { public List<Object> getOptions( DDMFormFieldRenderingContext ddmFormFieldRenderingContext) { List<Object> options = new ArrayList<>(); if (_ddmFormFieldOptions == null) { return options; } for (String optionValue : _ddmFormFieldOptions.getOptionsValues()) { Map<String, String> optionMap = HashMapBuilder.put( "label", () -> { LocalizedValue optionLabel = _ddmFormFieldOptions.getOptionLabels(optionValue); return optionLabel.getString(_locale); } ).put( "value", optionValue ).build(); options.add(optionMap); } return options; } GridDDMFormFieldContextHelper(
		DDMFormFieldOptions ddmFormFieldOptions, Locale locale); List<Object> getOptions(
		DDMFormFieldRenderingContext ddmFormFieldRenderingContext);  }
@Test public void testGetOptions() { List<Object> expectedOptions = new ArrayList<>(); expectedOptions.add(createOption("Label 1", "value 1")); expectedOptions.add(createOption("Label 2", "value 2")); expectedOptions.add(createOption("Label 3", "value 3")); DDMFormFieldOptions ddmFormFieldOptions = createDDMFormFieldOptions(); List<Object> actualOptions = getActualOptions( ddmFormFieldOptions, LocaleUtil.US); Assert.assertEquals(expectedOptions, actualOptions); }