@Test
public void testValidateUsingFilePath() {

    presenter._setDataSetDef( dataSetDef );
    presenter.editor = csvDataSetDefAttributesEditor;
    when( csvDataSetDefAttributesEditor.isUsingFilePath() ).thenReturn( true );
    presenter.validate();
    verify( csvDataSetDefValidator, times( 1 ) ).validateCustomAttributes( dataSetDef, true );
    verify( csvDataSetDefValidator, times( 0 ) ).validate( any( CSVDataSetDef.class ),
                                                           anyBoolean(),
                                                           anyBoolean(),
                                                           anyBoolean() );
}