ConflictingRepositoriesPopup implements ConflictingRepositoriesPopupView.Presenter { @Override public void hide() { safeExecute(okCommand); view.hide(); } ConflictingRepositoriesPopup(); @Inject  ConflictingRepositoriesPopup(final User identity,
                                        final ConflictingRepositoriesPopupView view); void setContent(final GAV gav,
                           final Set<MavenRepositoryMetadata> repositories,
                           final Command overrideCommand); void setContent(final GAV gav,
                           final Set<MavenRepositoryMetadata> metadata,
                           final Command okCommand,
                           final Command overrideCommand); @Override void show(); @Override void override(); @Override void hide();  }
@Test public void testHide() { presenter.hide(); verify(view).hide(); }