### Question:
BPMNDiagramEditor extends AbstractDiagramEditor { @GetContent @Override public Promise getContent() { flush(); return diagramServices.transform(getEditor().getEditorProxy().getContentSupplier().get()); } @Inject  BPMNDiagramEditor(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 BPMNStandaloneEditorMenuSessionItems menuSessionItems,
                             final ErrorPopupPresenter errorPopupPresenter,
                             final DiagramClientErrorHandler diagramClientErrorHandler,
                             final ClientTranslationService translationService,
                             final DocumentationView documentationView,
                             final DiagramEditorPreviewAndExplorerDock diagramPreviewAndExplorerDock,
                             final DiagramEditorPropertiesDock diagramPropertiesDock,
                             final LayoutHelper layoutHelper,
                             final OpenDiagramLayoutExecutor openDiagramLayoutExecutor,
                             final AbstractKogitoClientDiagramService diagramServices,
                             final FormsFlushManager formsFlushManager,
                             final CanvasFileExport canvasFileExport,
                             final Promises promises); @OnStartup @SuppressWarnings("unused") void onStartup(final PlaceRequest place); @Override void open(final Diagram diagram,
                     final Viewer.Callback callback); @OnOpen @SuppressWarnings("unused") void onOpen(); @OnClose @SuppressWarnings("unused") void onClose(); @Override void onDiagramLoad(); @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 boolean onMayClose(); @Override String getEditorIdentifier(); @GetContent @Override Promise getContent(); @GetPreview Promise getPreview(); @Override @IsDirty boolean isDirty(); @SetContent @Override @SuppressWarnings("all") Promise setContent(final String path, final String value); @Override void resetContentHash(); static final String EDITOR_ID; }### Answer:
@Test public void testGetContent() { editor.formElementUUID = ELEMENTUUID; editor.getContent(); verify(formsFlushManager, times(1)).flush(clientSession, ELEMENTUUID); }