protected function setupTaxRateFactoryMock(array $taxRate)
 {
     $taxRateMock = $this->getMockBuilder('\\Magento\\Tax\\Api\\Data\\GrandTotalRatesInterface')->getMock();
     $this->ratesFactoryMock->expects($this->once())->method('create')->with([])->willReturn($taxRateMock);
     $taxRateMock->expects($this->once())->method('setPercent')->with($taxRate['percent'])->willReturnSelf();
     $taxRateMock->expects($this->once())->method('setTitle')->with($taxRate['title'])->willReturnSelf();
     return $taxRateMock;
 }