### Question:
EditorFieldLayoutComponent extends FieldLayoutComponent implements HasDragAndDropSettings,
                                                                                HasModalConfiguration { @Override protected IsWidget generateContent(RenderingContext ctx) { LayoutComponent component = ctx.getComponent(); if (fieldRenderer == null) { initContent(component.getProperties()); } else { renderContent(); } return content; } @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 testFieldPartsAdded() { Set<String> parts = Stream.of("p1", "p2").collect(Collectors.toSet()); when(fieldRenderer.getFieldParts()).thenReturn(parts); editorFieldLayoutComponent.generateContent(ctx); editorFieldLayoutComponent.addComponentParts(ctx.getComponent()); Set<String> expectedParts = layoutComponent.getParts().stream().map(p -> p.getPartId()).collect(Collectors.toSet()); parts = Stream.of("p1", "p3").collect(Collectors.toSet()); when(fieldRenderer.getFieldParts()).thenReturn(parts); editorFieldLayoutComponent.generateContent(ctx); editorFieldLayoutComponent.addComponentParts(ctx.getComponent()); expectedParts = layoutComponent.getParts().stream().map(p -> p.getPartId()).collect(Collectors.toSet()); assertEquals(parts, expectedParts); }