@Test
public void testOnProviderTypeSelected() throws Exception {

    when(dataSetProviderTypeWorkflow.getProviderType()).thenReturn(DataSetProviderType.SQL);
    presenter.onProviderTypeSelected(dataSetProviderTypeWorkflow);
    assertEquals(dataSetBasicAttributesWorkflow, presenter.currentWorkflow);
    verify(view, times(1)).setWidget(any(IsWidget.class));
    verify(dataSetBasicAttributesWorkflow, times(1)).edit(any(DataSetDef.class));
    verify(editWorkflow, times(1)).showTestButton();
    verify(editWorkflow, times(1)).showBackButton();
    verify(editWorkflow, times(0)).showNextButton();
}