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