/**
  * @expectedException \Magento\Framework\Exception\LocalizedException
  * @expectedExceptionMessage Please check billing address information.
  */
 public function testSetQuoteCustomerBillingAddressForAddressLeak()
 {
     $addressId = 43;
     $customerAddressId = 42;
     $customerAddressMock = $this->getMock('\\Magento\\Customer\\Model\\Data\\Address', [], [], '', false);
     $customerAddressMock->expects($this->atLeastOnce())->method('getId')->willReturn($customerAddressId);
     $customerAddresses = [$customerAddressMock];
     $this->customerMock->expects($this->once())->method('getAddresses')->willReturn($customerAddresses);
     $this->assertEquals($this->model, $this->model->setQuoteCustomerBillingAddress($addressId));
 }