public function couldBeConstructedWithOptionsAndHttpClient()
{
$client = $this->createHttpClientMock();
$factory = $this->createHttpMessageFactory();
$api = new Api(array('username' => 'aUsername', 'password' => 'aPassword', 'partner' => 'aPartner', 'vendor' => 'aVendor', 'tender' => 'aTender'), $client, $factory);
$this->assertAttributeSame($client, 'client', $api);
$this->assertAttributeSame($factory, 'messageFactory', $api);
}