@Test
  public void onUserConfigChangeEvent() {
    // Given: change default settings in config
    configHolder.setDisplayButtons(false);
    configHolder.setSpellCheckEnabled(false);

    // When:
    presenter.onUserConfigChanged(UserConfigChangeEvent.EDITOR_CONFIG_CHANGE_EVENT);

    // Then:
    verify(display, times(3)).showButtons(false);
    verify(saveAsApprovedConfirmation)
        .setShowSaveApprovedWarning(
            userOptionsService.getConfigHolder().getState().isShowSaveApprovedWarning());
    verify(display, times(3)).setEnableSpellCheck(false);
  }