UploadFileViewImpl extends Window implements UploadFileView { @Override public void setEnabledUploadButton(boolean enabled) { btnUpload.setEnabled(enabled); } @Inject  UploadFileViewImpl(UploadFileViewBinder uploadFileViewBinder, CoreLocalizationConstant locale); @Override void showDialog(); @Override void closeDialog(); @Override void setDelegate(ActionDelegate delegate); @Override void setEnabledUploadButton(boolean enabled); @Override void setEncoding(@NotNull String encodingType); @Override void setAction(@NotNull String url); @Override void submit(); @Override @NotNull String getFileName(); @Override boolean isOverwriteFileSelected();  }
@Test public void setEnabledUploadButtonShouldBeExecuted() { view.btnUpload = mock(Button.class); view.setEnabledUploadButton(true); verify(view.btnUpload).setEnabled(eq(true)); }