@Test
public void testFlushUsingFilePath() throws Exception {

    presenter._setDataSetDef( dataSetDef );
    presenter.driver = driver;
    presenter.editor = csvEditor;
    when( csvEditor.isUsingFilePath() ).thenReturn( true );
    presenter.afterFlush();
    verify( dataSetDef, times( 1 ) ).setFileURL( null );
    verify( dataSetDef, times( 0 ) ).setFilePath( null );
}