### Question:
MultipleSelectorFieldRenderer extends FieldRenderer<AbstractMultipleSelectorFieldDefinition, DefaultFormGroup> implements RequiresValueConverter { @Override protected FormGroup getFormGroup(RenderMode renderMode) { DefaultFormGroup formGroup = formGroupsInstance.get(); final List<TYPE> values = field.getListOfValues(); selector.init(searchService, new MultipleLiveSearchSelectionHandler<>(field.getMaxElementsOnTitle())); selector.setMaxItems(field.getMaxDropdownElements()); selector.setEnabled(!field.getReadOnly() && renderingContext.getRenderMode().equals(RenderMode.EDIT_MODE)); selector.setFilterEnabled(field.getAllowFilter()); selector.setClearSelectionEnabled(field.getAllowClearSelection()); if (renderMode.equals(RenderMode.PRETTY_MODE)) { selector.setEnabled(false); } formGroup.render(selector.asWidget(), field); return formGroup; } @Inject  MultipleSelectorFieldRenderer(MultipleSelectorInput<TYPE> selector,
                                         TranslationService translationService); @Override String getName(); @Override Converter getConverter();  }### Answer:
@Test public void testGetFormGroup() { renderer.getFormGroup(RenderMode.EDIT_MODE); verify(formGroupsInstance).get(); selector.init(any(), any()); verify(selector).setMaxItems(fieldDefinition.getMaxDropdownElements()); verify(selector).setEnabled(true); verify(selector).setFilterEnabled(fieldDefinition.getAllowFilter()); verify(selector).setClearSelectionEnabled(fieldDefinition.getAllowClearSelection()); verify(formGroup).render(any(), eq(fieldDefinition)); }