@Test
public void checkOnSourceTabSelected() {

    final String source = "source";
    final ObservablePath path = mock(ObservablePath.class);
    final PlaceRequest placeRequest = mock(PlaceRequest.class);
    final GuidedDecisionTableEditorContent content = makeDecisionTableContent();
    final GuidedDecisionTableView.Presenter dtPresenter = makeDecisionTable(path,
                                                                            path,
                                                                            placeRequest,
                                                                            content);
    when(dtService.toSource(eq(path),
                            any(GuidedDecisionTable52.class))).thenReturn(source);
    presenter.onSourceTabSelected(dtPresenter);
    final ArgumentCaptor<GuidedDecisionTable52> modelCaptor = ArgumentCaptor.forClass(GuidedDecisionTable52.class);
    verify(dtService,
           times(1)).toSource(eq(path),
                              modelCaptor.capture());
    assertNotNull(modelCaptor.getValue());
    assertEquals(dtPresenter.getModel(),
                 modelCaptor.getValue());
    verify(presenter,
           times(1)).updateSource(eq(source));
}