public function testAdjustExportPath()
 {
     $component = new CComponent();
     $component->attachBehavior('importexport', new ImportExportBehavior());
     // Test csv filename without compression enabled
     $expected = 'records_export.csv';
     foreach (array('records_export.csv', 'records_export') as $path) {
         $this->assertEquals($expected, $component->adjustExportPath($path, array()));
     }
     // Test csv filename with compression enabled
     $expected = 'records_export.zip';
     foreach (array('records_export.csv', 'records_export', 'records_export.zip') as $path) {
         $this->assertEquals($expected, $component->adjustExportPath($path, array('compressOutput' => true)));
     }
 }