/**
  * @param string $map
  * @param mixed $initialValue
  * @param mixed $processedValue
  * @dataProvider dataProviderMaps
  * @return void
  */
 public function testHandle($map, $initialValue, $processedValue)
 {
     $fieldName = 'fieldname';
     /** @var \Migration\ResourceModel\Record|\PHPUnit_Framework_MockObject_MockObject $record */
     $record = $this->getMock('Migration\\ResourceModel\\Record', ['setValue', 'getValue', 'getFields'], [], '', false);
     $record->expects($this->once())->method('getValue')->will($this->returnValue($initialValue));
     $record->expects($this->once())->method('setValue')->with($fieldName, $processedValue);
     $record->expects($this->any())->method('getFields')->will($this->returnValue([$fieldName]));
     $record2 = $this->getMockBuilder('Migration\\ResourceModel\\Record')->disableOriginalConstructor()->getMock();
     $handler = new Convert($map);
     $handler->setField($fieldName);
     $handler->handle($record, $record2);
 }