public function testSaveData()
 {
     $this->_entityModel->expects($this->any())->method('getNewSku')->will($this->returnValue(['configurableskuI22' => ['entity_id' => 1, 'type_id' => 'configurable', 'attr_set_code' => 'Default'], 'testconf2-attr2val1-testattr3v1' => ['entity_id' => 2, 'type_id' => 'simple', 'attr_set_code' => 'Default'], 'testconf2-attr2val1-testattr30v1' => ['entity_id' => 20, 'type_id' => 'simple', 'attr_set_code' => 'Default'], 'testconf2-attr2val1-testattr3v2' => ['entity_id' => 3, 'type_id' => 'simple', 'attr_set_code' => 'Default'], 'testSimple' => ['entity_id' => 4, 'type_id' => 'simple', 'attr_set_code' => 'Default'], 'testSimpleToSkip' => ['entity_id' => 5, 'type_id' => 'simple', 'attr_set_code' => 'Default'], 'configurableskuI22withoutLabels' => ['entity_id' => 6, 'type_id' => 'configurable', 'attr_set_code' => 'Default'], 'configurableskuI22withoutVariations' => ['entity_id' => 7, 'type_id' => 'configurable', 'attr_set_code' => 'Default'], 'configurableskuI22Duplicated' => ['entity_id' => 8, 'type_id' => 'configurable', 'attr_set_code' => 'Default'], 'configurableskuI22BadPrice' => ['entity_id' => 9, 'type_id' => 'configurable', 'attr_set_code' => 'Default']]));
     $this->_connection->expects($this->any())->method('select')->will($this->returnValue($this->select));
     $this->_connection->expects($this->any())->method('fetchAll')->with($this->select)->will($this->returnValue([['attribute_id' => 131, 'product_id' => 1, 'option_id' => 1, 'product_super_attribute_id' => 131], ['attribute_id' => 131, 'product_id' => 2, 'option_id' => 1, 'product_super_attribute_id' => 131], ['attribute_id' => 131, 'product_id' => 2, 'option_id' => 2, 'product_super_attribute_id' => 131], ['attribute_id' => 131, 'product_id' => 2, 'option_id' => 3, 'product_super_attribute_id' => 131], ['attribute_id' => 131, 'product_id' => 20, 'option_id' => 1, 'product_super_attribute_id' => 131], ['attribute_id' => 131, 'product_id' => 20, 'option_id' => 2, 'product_super_attribute_id' => 131], ['attribute_id' => 131, 'product_id' => 20, 'option_id' => 3, 'product_super_attribute_id' => 131], ['attribute_id' => 132, 'product_id' => 1, 'option_id' => 1, 'product_super_attribute_id' => 132], ['attribute_id' => 132, 'product_id' => 1, 'option_id' => 2, 'product_super_attribute_id' => 132], ['attribute_id' => 132, 'product_id' => 1, 'option_id' => 3, 'product_super_attribute_id' => 132], ['attribute_id' => 132, 'product_id' => 1, 'option_id' => 4, 'product_super_attribute_id' => 132], ['attribute_id' => 132, 'product_id' => 1, 'option_id' => 5, 'product_super_attribute_id' => 132], ['attribute_id' => 132, 'product_id' => 1, 'option_id' => 6, 'product_super_attribute_id' => 132], ['attribute_id' => 132, 'product_id' => 3, 'option_id' => 3, 'product_super_attribute_id' => 132], ['attribute_id' => 132, 'product_id' => 4, 'option_id' => 4, 'product_super_attribute_id' => 132], ['attribute_id' => 132, 'product_id' => 5, 'option_id' => 5, 'product_super_attribute_id' => 132]]));
     $this->_connection->expects($this->any())->method('fetchAll')->with($this->select)->will($this->returnValue([]));
     $bunch = $this->_getBunch();
     $this->_entityModel->expects($this->at(2))->method('getNextBunch')->will($this->returnValue($bunch));
     $this->_entityModel->expects($this->at(3))->method('getNextBunch')->will($this->returnValue([]));
     $this->_entityModel->expects($this->any())->method('isRowAllowedToImport')->will($this->returnCallback([$this, 'isRowAllowedToImport']));
     $this->_entityModel->expects($this->any())->method('getOldSku')->will($this->returnValue(['testSimpleOld' => ['entity_id' => 10, 'type_id' => 'simple', 'attr_set_code' => 'Default']]));
     $this->_entityModel->expects($this->any())->method('getAttrSetIdToName')->willReturn([4 => 'Default']);
     $this->configurable->saveData();
 }