### Question:
AbstractDMNDiagramEditor extends AbstractDiagramEditor { @Override @GetContent public Promise getContent() { return diagramServices.transform(getEditor().getEditorProxy().getContentSupplier().get()); } AbstractDMNDiagramEditor(final View view,
                                    final FileMenuBuilder fileMenuBuilder,
                                    final PlaceManager placeManager,
                                    final MultiPageEditorContainerView multiPageEditorContainerView,
                                    final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
                                    final Event<NotificationEvent> notificationEvent,
                                    final Event<OnDiagramFocusEvent> onDiagramFocusEvent,
                                    final TextEditorView xmlEditorView,
                                    final ManagedInstance<SessionEditorPresenter<EditorSession>> editorSessionPresenterInstances,
                                    final ManagedInstance<SessionViewerPresenter<ViewerSession>> viewerSessionPresenterInstances,
                                    final DMNEditorMenuSessionItems menuSessionItems,
                                    final ErrorPopupPresenter errorPopupPresenter,
                                    final DiagramClientErrorHandler diagramClientErrorHandler,
                                    final ClientTranslationService translationService,
                                    final DocumentationView<Diagram> documentationView,
                                    final DMNEditorSearchIndex editorSearchIndex,
                                    final SearchBarComponent<DMNSearchableElement> searchBarComponent,
                                    final SessionManager sessionManager,
                                    final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                    final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
                                    final DecisionNavigatorDock decisionNavigatorDock,
                                    final DiagramEditorPropertiesDock diagramPropertiesDock,
                                    final PreviewDiagramDock diagramPreviewAndExplorerDock,
                                    final LayoutHelper layoutHelper,
                                    final OpenDiagramLayoutExecutor openDiagramLayoutExecutor,
                                    final DataTypesPage dataTypesPage,
                                    final KogitoClientDiagramService diagramServices,
                                    final MonacoFEELInitializer feelInitializer,
                                    final CanvasFileExport canvasFileExport,
                                    final Promises promises,
                                    final IncludedModelsPage includedModelsPage,
                                    final EditorContextProvider contextProvider,
                                    final GuidedTourBridgeInitializer guidedTourBridgeInitializer,
                                    final DRDNameChanger drdNameChanger); @OnStartup @SuppressWarnings("unused") void onStartup(final PlaceRequest place); @Override void initialiseKieEditorForSession(final Diagram diagram); @SuppressWarnings("unused") void onDataTypePageNavTabActiveEvent(final DataTypePageTabActiveEvent event); @Override void open(final Diagram diagram,
                     final Viewer.Callback callback); @OnOpen @SuppressWarnings("unused") void onOpen(); @OnClose @SuppressWarnings("unused") void onClose(); @OnFocus @SuppressWarnings("unused") void onFocus(); @OnLostFocus @SuppressWarnings("unused") void onLostFocus(); @Override @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @Override @WorkbenchPartView IsWidget asWidget(); @OnMayClose @SuppressWarnings("unused") boolean onMayClose(); @Override String getEditorIdentifier(); void onDataTypeEditModeToggle(final DataTypeEditModeToggleEvent event); @Override @GetContent Promise getContent(); @Override @IsDirty boolean isDirty(); @Override @SetContent Promise setContent(final String path,
                              final String value); @Override void resetContentHash(); @GetPreview Promise getPreview(); static final String PERSPECTIVE_ID; static final String EDITOR_ID; static final int DATA_TYPES_PAGE_INDEX; }### Answer:
@Test public void testGetContent() { openDiagram(); editor.getContent(); verify(clientDiagramService).transform(kogitoDiagramResourceArgumentCaptor.capture()); final KogitoDiagramResource resource = kogitoDiagramResourceArgumentCaptor.getValue(); assertThat(resource).isNotNull(); assertThat(resource.projectDiagram().isPresent()).isTrue(); assertThat(resource.projectDiagram().get()).isEqualTo(diagram); }