### Question:
SearchBarComponentView implements SearchBarComponent.View { @EventHandler("close-search") public void onCloseSearchClick(final ClickEvent clickEvent) { disableSearch(); clickEvent.preventDefault(); clickEvent.stopPropagation(); } @Inject  SearchBarComponentView(final HTMLButtonElement searchButton,
                                  final HTMLButtonElement searchContainer,
                                  final HTMLButtonElement prevElement,
                                  final HTMLButtonElement nextElement,
                                  final HTMLButtonElement closeSearch,
                                  final HTMLInputElement inputElement,
                                  final TranslationService translationService,
                                  final @Named("span") HTMLElement currentResult,
                                  final @Named("span") HTMLElement totalOfResults); @Override void init(final SearchBarComponent searchBarComponent); @EventHandler("search-button") void onSearchButtonClick(final ClickEvent clickEvent); @EventHandler("next-element") void onNextElementClick(final ClickEvent clickEvent); @EventHandler("prev-element") void onPrevElementClick(final ClickEvent clickEvent); @EventHandler("close-search") void onCloseSearchClick(final ClickEvent clickEvent); @EventHandler("search-input") void onSearchInputKeyPress(final KeyUpEvent keyEvent); @Override void setCurrentResultNumber(final Integer currentResultNumber); @Override void setTotalOfResultsNumber(final Integer totalOfResultsNumber); @Override void disableSearch();  }### Answer:
@Test public void testOnCloseSearchClick() { final ClickEvent clickEvent = mock(ClickEvent.class); view.onCloseSearchClick(clickEvent); verify(view, times(2)).disableSearch(); verify(clickEvent).preventDefault(); verify(clickEvent).stopPropagation(); }