public function testSetClient()
 {
     $newClient = new Client();
     $newClient->setId(789);
     $this->rebalancerAction->setClient($newClient);
     $this->assertEquals(789, $this->rebalancerAction->getClient()->getId());
 }
 public function getAccountsByRebalancerAction(RebalancerAction $rebalancerAction)
 {
     $client = $rebalancerAction->getClient();
     if ($client->isHouseholdLevelRebalancer()) {
         $collection = $this->findClientAccounts($client);
     } else {
         $account = $this->findAccountById($rebalancerAction->getAccountId());
         $account->setClient($client);
         $collection = new AccountCollection();
         $collection->add($account);
     }
     return $collection;
 }