@Test
public void checkDecisionTableSelectedEventFiredWhenEditorReceivesFocusWithActiveDecisionTable() {

    final GuidedDecisionTableView.Presenter activeDtable = mock(GuidedDecisionTableView.Presenter.class);
    when(modeller.getActiveDecisionTable()).thenReturn(Optional.of(activeDtable));
    presenter.onFocus();
    verify(activeDtable,
           times(1)).initialiseAnalysis();
    verify(decisionTableSelectedEvent,
           times(1)).fire(dtSelectedEventCaptor.capture());
    final DecisionTableSelectedEvent event = dtSelectedEventCaptor.getValue();
    assertNotNull(event);
    assertTrue(event.getPresenter().isPresent());
    assertEquals(activeDtable,
                 event.getPresenter().get());
}