public function testSendAccount()
 {
     $name = $this->account_name;
     $client = $this->getClient();
     $agent = new Agent(new NullLogger(), $client, $name);
     try {
         $client->deleteSugarInstance(array('instance_id' => $this->instance_id));
     } catch (ClientErrorResponseException $e) {
     }
     try {
         $client->deleteAccount(array('name' => $name));
     } catch (ClientErrorResponseException $e) {
     }
     $history = $this->getHistory($client);
     // Should POST
     $agent->sendAccount();
     $this->assertEquals('POST', $history->getLastRequest()->getMethod());
     // Should PUT
     $agent->sendAccount();
     $this->assertEquals('PUT', $history->getLastRequest()->getMethod());
 }