/**
  * @expectedException \Magento\Framework\Exception\InputException
  * @expectedExceptionMessage One or more input exceptions have occurred.
  */
 public function testValidate()
 {
     $regionId = 2;
     $rateTitles = ['Label 1', 'Label 2'];
     $regionMock = $this->getMock('Magento\\Directory\\Model\\Region', [], [], '', false);
     $regionMock->expects($this->any())->method('getId')->will($this->returnValue(''));
     $regionMock->expects($this->any())->method('load')->with($regionId)->will($this->returnSelf());
     $this->regionFactoryMock->expects($this->once())->method('create')->will($this->returnValue($regionMock));
     $rateMock = $this->getTaxRateMock(['id' => null, 'tax_country_id' => '', 'tax_region_id' => $regionId, 'region_name' => null, 'tax_postcode' => null, 'zip_is_range' => true, 'zip_from' => -90000, 'zip_to' => '', 'rate' => '', 'code' => '', 'titles' => $rateTitles]);
     $this->model->save($rateMock);
 }