@Test
public void testFlushDriverUsingQuery() throws Exception {

    presenter._setDataSetDef( dataSetDef );
    presenter.editor = sqlDataSetDefAttributesEditor;
    when( sqlDataSetDefAttributesEditor.isUsingQuery() ).thenReturn( true );
    presenter.afterFlush();
    verify( dataSetDef, times( 1 ) ).setDbTable( null );
    verify( dataSetDef, times( 0 ) ).setDbSQL( null );
}