@Override
  public void actionPerformed(ActionEvent e) {
    if (this.ok.equals(e.getSource())) {
      this.fileName = this.input.getText();
      presenter.fileNameChanged();
      presenter.confirmed();
    } else if (this.cancel.equals(e.getSource())) {
      presenter.cancelled();
    }
  }
@Test
    void testActionEvent() {
      assertDoesNotThrow(() ->{
        FileSelectorJframe jFrame = new FileSelectorJframe();
        ActionEvent action = new ActionEvent("dummy", 1, "dummy");
        jFrame.actionPerformed(action);
      });
    }