### Question:
EditorFieldLayoutComponent extends FieldLayoutComponent implements HasDragAndDropSettings,
                                                                                HasModalConfiguration { protected void onPressOk(FieldDefinition fieldCopy) { editorHelper.saveFormField(field, fieldCopy); this.field = fieldCopy; this.fieldId = Optional.of(fieldCopy.getId()); initComponent(); renderContent(); showProperties = false; if (configContext != null) { LayoutComponent layoutComponent = configContext.getLayoutComponent(); addComponentParts(layoutComponent); configContext.getComponentProperties().put(FORM_ID, getFormId()); configContext.getComponentProperties().put(FIELD_ID, field.getId()); configContext.configurationFinished(); configContext = null; } syncPaletteEvent.fire(new FormEditorSyncPaletteEvent(getFormId())); } @Inject  EditorFieldLayoutComponent(FieldRendererManager fieldRendererManager,
                                      TranslationService translationService,
                                      FieldPropertiesRenderer propertiesRenderer,
                                      FieldManager fieldManager,
                                      Event<FormEditorSyncPaletteEvent> syncPaletteEvent); @Override void init(FormRenderingContext renderingContext,
                     FieldDefinition field); @Override String[] getSettingsKeys(); @Override void setSettingValue(String key,
                                String value); @Override String getSettingValue(String key); @Override Map<String, String> getMapSettings(); @Override Modal getConfigurationModal(final ModalConfigurationContext ctx); final String[] SETTINGS_KEYS; }### Answer:
@Test public void testOnPressOk() { testOnPressOk(false, false); }
@Test public void testHelperOnPressOk() { FieldDefinition fieldCopy = setupFormEditorHelper(); propertiesRendererHelper.onPressOk(fieldCopy); verify(editorFieldLayoutComponent).onPressOk(fieldCopy); }