### Question:
ValidationPopup implements ValidationPopupView.Presenter { public void showSaveValidationMessages(final Command yesCommand, final Command cancelCommand, final List<ValidationMessage> validationMessages) { clear(); view.setYesButtonText(translationService.getTranslation(KieWorkbenchWidgetsConstants.ValidationPopup_YesSaveAnyway)); view.showYesButton(true); view.setCancelButtonText(translationService.getTranslation(KieWorkbenchWidgetsConstants.ValidationPopup_Cancel)); view.showCancelButton(true); initAndShowModal(yesCommand, cancelCommand, validationMessages); } @Inject  ValidationPopup(final ValidationPopupView view,
                           final ValidationMessageTranslatorUtils validationMessageTranslatorUtils,
                           final TranslationService translationService,
                           final Event<NotificationEvent> notificationEvent); @PostConstruct void init(); void showMessages(final List<ValidationMessage> messages); AssetValidatedCallback getValidationCallback(final Command validationFinishedCommand); void showTranslatedMessages(final List<ValidationMessage> messages); void showCopyValidationMessages(final Command yesCommand,
                                           final Command cancelCommand,
                                           final List<ValidationMessage> validationMessages); void showSaveValidationMessages(final Command yesCommand,
                                           final Command cancelCommand,
                                           final List<ValidationMessage> validationMessages); void showDeleteValidationMessages(final Command yesCommand,
                                             final Command cancelCommand,
                                             final List<ValidationMessage> validationMessages); @Override void onYesButtonClicked(); @Override void onCancelButtonClicked();  }### Answer:
@Test public void showSaveValidationMessages() { List<ValidationMessage> validationMessages = Arrays.asList(new ValidationMessage()); validationPopup.showSaveValidationMessages(() -> { }, () -> { }, validationMessages); verify(view).showYesButton(true); verify(view).showCancelButton(true); List<ValidationMessage> translatedMessages = Collections.emptyList(); when(validationMessageTranslatorUtils.translate(validationMessages)).thenReturn(translatedMessages); verify(view).setValidationMessages(translatedMessages); verify(view).show(); }