@Test
public void testGetSearchPerformedCallback() {

    final ArgumentCaptor<SearchPerformedEvent> captor = ArgumentCaptor.forClass(SearchPerformedEvent.class);
    final GuidedDecisionTableSearchableElement currentResult = mock(GuidedDecisionTableSearchableElement.class);
    when(editorSearchIndex.getCurrentResult()).thenReturn(Optional.of(currentResult));
    presenter.getSearchPerformedCallback().execute();
    verify(searchPerformedEvent).fire(captor.capture());
    final SearchPerformedEvent value = captor.getValue();
    assertEquals(value.getCurrentElement(), currentResult);
}