RestorePopUpPresenter { public void show(final ObservablePath currentPath, final String currentVersionRecordUri, final String branchName) { command = restoreCommand(currentPath, currentVersionRecordUri, branchName); view.show(); } @Inject  RestorePopUpPresenter(View view,
                                 BusyIndicatorView busyIndicatorView,
                                 Caller<VersionService> versionService,
                                 Event<RestoreEvent> restoreEvent,
                                 RestoreUtil restoreUtil); @PostConstruct void setup(); void restore(); void show(final ObservablePath currentPath,
                     final String currentVersionRecordUri,
                     final String branchName); void cancel(); ParameterizedCommand<String> restoreCommand(final ObservablePath currentPath,
                                                       final String currentVersionRecordUri,
                                                       final String branchName);  }
@Test public void testShow() throws Exception { presenter = spy(presenter); presenter.show(path, "uri", currentBranch.getName()); verify(view).show(); verify(presenter).restoreCommand(path, "uri", currentBranch.getName()); }