/**
  * @group update
  */
 public function testUpdateAccount()
 {
     $callback_url = $_ENV['CALLBACK_URL'];
     $account = new Account();
     $account->setCallbackUrl($callback_url);
     $response = $this->client->updateAccount($account);
     $this->assertInstanceOf('HelloSign\\Account', $response);
     $this->assertNotNull($response->getId());
     $this->assertEquals($response->getCallbackUrl(), $callback_url);
     $this->assertEquals($response, $account);
     return $response;
 }
 /**
  * Updates your Account's settings
  *
  * @param  Account $account
  * @return Account
  * @throws BaseException
  */
 public function updateAccount(Account $account)
 {
     $response = $this->rest->post(static::ACCOUNT_PATH, $account->toUpdateParams());
     $this->checkResponse($response);
     return $account->fromResponse($response);
 }