/**
  * When I try to transfer discounts from a sales object to payloads
  * and the discount node exists in an address
  * then the returned IDiscountContainer will have one discount.
  */
 public function testTransferDiscounts()
 {
     $this->_item->setEbayEnterpriseOrderDiscountData(['1' => ['id' => '1']]);
     $discountHelper = Mage::helper('eb2ccore/discount');
     $discountHelper->transferDiscounts($this->_item, $this->_payload);
     $discounts = $this->_payload->getDiscounts();
     $this->assertCount(1, $discounts);
     $discounts->rewind();
     $discount = $discounts->current();
     $this->assertSame('1', $discount->getId());
 }