### Question:
GitUrlsPresenter { void update() { view.setUrl(gitUrlsByProtocol.get(selectedProtocol).getUrl()); } @Inject  GitUrlsPresenter(final View view,
                            final Event<NotificationEvent> notificationEventEvent,
                            final TranslationService translationService,
                            final Clipboard clipboard); @PostConstruct void init(); void setup(final List<GitUrl> gitUrls); void setSelectedProtocol(final String selectedProtocol); void copyToClipboard(final HTMLInputElement element); View getView();  }### Answer:
@Test public void testUpdate() { final GitUrl gitUrl = new GitUrl("git", "url"); presenter.setup(singletonList(gitUrl)); presenter.update(); verify(view, times(2)).setUrl(eq(gitUrl.getUrl())); }