### Question:
OverviewScreenPresenter { public void saveSummaryEdition() { if (isUserAuthor()) { final String summaryInputText = view.getSummaryInputText(); if (!isInvalidContent(summaryInputText)) { changeRequestService.call(v -> { view.setSummary(summaryInputText); view.enableSummaryEditMode(false); }).updateChangeRequestSummary(workspaceProject.getSpace().getName(), workspaceProject.getRepository().getAlias(), currentChangeRequestId, summaryInputText); } } } @Inject  OverviewScreenPresenter(final View view,
                                   final TranslationService ts,
                                   final ManagedInstance<CommentItemPresenter> commentItemPresenterInstances,
                                   final Caller<ChangeRequestService> changeRequestService,
                                   final LibraryPlaces libraryPlaces,
                                   final ChangeRequestUtils changeRequestUtils,
                                   final SessionInfo sessionInfo); @PostConstruct void postConstruct(); View getView(); void addComment(); void reset(); void setup(final ChangeRequest changeRequest,
                      final Consumer<Boolean> finishLoadingCallback); void checkWarnConflict(final ChangeRequest changeRequest); void startEditSummary(); void saveSummaryEdition(); void cancelSummaryEdition(); void startEditDescription(); void saveDescriptionEdition(); void cancelDescriptionEdition(); void nextCommentPage(); void prevCommentPage(); void setCommentCurrentPage(final int currentCommentPage);  }### Answer:
@Test public void saveSummaryEditionTest() throws NoSuchFieldException { new FieldSetter(presenter, OverviewScreenPresenter.class.getDeclaredField("workspaceProject")).set(workspaceProject); new FieldSetter(presenter, OverviewScreenPresenter.class.getDeclaredField("changeRequestAuthorId")).set("admin"); doReturn("my updated summary").when(view).getSummaryInputText(); presenter.saveSummaryEdition(); verify(changeRequestService).updateChangeRequestSummary(anyString(), anyString(), anyLong(), anyString()); }