### Question:
SearchBarComponent { void nextResult() { getEditorSearchIndex().nextResult(); updateViewNumber(); } @Inject  SearchBarComponent(final View view); void init(final EditorSearchIndex<T> editorSearchIndex); View getView(); void disableSearch();  }### Answer:
@Test public void testNextResult() { component.nextResult(); verify(index).nextResult(); verify(component).updateViewNumber(); }