NewSSHKeyModal implements NewSSHKeyModalView.Presenter { @Override public void notifyCancel() { view.hide(); } @Inject  NewSSHKeyModal(final NewSSHKeyModalView view, final Caller<SSHKeyEditorService> serviceCaller, final TranslationService translationService); void init(NewSSHKeyModalHandler handler); void show(); @Override void notifyCancel(); @Override void notifyAdd(String name, String key); void hide();  }
@Test public void testNotifyCancel() { modal.notifyCancel(); verify(view).hide(); }