### Question:
ValidationPopup implements ValidationPopupView.Presenter { public void showMessages(final List<ValidationMessage> messages) { clear(); view.setCancelButtonText(translationService.getTranslation(KieWorkbenchWidgetsConstants.ValidationPopup_Cancel)); view.showCancelButton(true); initAndShowModal(() -> { }, () -> { }, messages); } @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 showMessages() { ValidationMessage validationMessage = new ValidationMessage(); validationPopup.showMessages(Arrays.asList(validationMessage)); verify(view).showYesButton(false); verify(view).showCancelButton(true); verify(view).setValidationMessages(anyListOf(ValidationMessage.class)); verify(view).show(); }