@Test
public void testOnSave() {

    final Path path = mock(Path.class);
    when(dataSetDefVfsServices.save(any(DataSetDef.class), anyString())).thenReturn(path);
    presenter.currentWorkflow = editWorkflow;
    presenter.onSave(dataSetDef, "saveMessage");
    verify(placeManager, times(1)).goTo("DataSetAuthoringHome");
    verify(notification, times(1)).fire(any(NotificationEvent.class));
    verify(placeManager, times(1)).closePlace(any(PlaceRequest.class));
    verify(editWorkflow, times(1)).clear();
    verify(workflowFactory, times(0)).providerType();
    verify(workflowFactory, times(0)).edit(any(DataSetProviderType.class));
    verify(workflowFactory, times(0)).basicAttributes(any(DataSetProviderType.class));
    assertNull("current workflow null", presenter.currentWorkflow);
}