/**
  * testSignQuery
  *
  * @return void
  * @access public
  */
 function testSignQuery()
 {
     $query = array('Service' => 'AWSECommerceService', 'AWSAccessKeyId' => 'PUBLICKEY', 'Timestamp' => '2010-03-01T07:44:03Z', 'AccociateTag' => 'ASSID', 'Version' => '2009-03-31', 'Operation' => 'ItemSearch');
     $this->Amazon->find(null, $query);
     $results = $this->Amazon->getLog();
     $expected = 'http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=PUBLICKEY&AccociateTag=ASSID&Operation=ItemSearch&Service=AWSECommerceService&Timestamp=2010-03-01T07%3A44%3A03Z&Version=2009-03-31&Signature=oEbqdS17pJmjRaSzbBX14zcnlprDbRlpDhQEvjo9mUA%3D';
     $this->assertEqual($expected, $results['log'][0]);
 }
 /**
  * testFindById
  *
  * @return void
  */
 public function testFindById()
 {
     $this->Amazon->expects($this->any())->method('_request');
     $this->Amazon->findById('ITEMID');
     $this->assertEquals('AWSECommerceService', $this->Amazon->query['Service']);
     $this->assertEquals('PUBLICKEY', $this->Amazon->query['AWSAccessKeyId']);
     $this->assertEquals('ASSID', $this->Amazon->query['AccociateTag']);
     $this->assertEquals('ItemLookup', $this->Amazon->query['Operation']);
     $this->assertEquals('2009-03-31', $this->Amazon->query['Version']);
     $this->assertEquals('ITEMID', $this->Amazon->query['ItemId']);
 }