### Question:
SearchBarComponentView implements SearchBarComponent.View { @Override public void setTotalOfResultsNumber(final Integer totalOfResultsNumber) { totalOfResults.textContent = totalOfResultsNumber.toString(); } @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 testSetTotalOfResultsNumber() { totalOfResults.textContent = "something..."; view.setTotalOfResultsNumber(42); assertEquals("42", totalOfResults.textContent); }