FileUploadPopupView extends AbstractScenarioPopupView implements FileUploadPopup { @EventHandler("chooseButton") public void onChooseButtonClickEvent(ClickEvent clickEvent) { file.click(); }  static void fileLoaded(String fileContents); @Override void init(); @Override void show(final String mainTitleText,
                     final String okButtonText,
                     final Command okCommand); @Override void show(final String mainTitleText,
                     final String uploadWarningText,
                     final String okButtonText,
                     final Command okCommand); @Override String getFileContents(); @Override String getFileName(); @Override void setAcceptedExtension(List<String> acceptedExtension); @EventHandler("chooseButton") void onChooseButtonClickEvent(ClickEvent clickEvent); @EventHandler("file") void onFileChangeEvent(ChangeEvent event); static native void readTextFile(JavaScriptObject files);  }
@Test public void onChooseButtonClickEvent() { ClickEvent clickEventMock = mock(ClickEvent.class); ((FileUploadPopupView) popupView).onChooseButtonClickEvent(clickEventMock); verify(fileMock, times(1)).click(); }