/** * @expectedException HealthCareAbroad\UserBundle\Services\Exception\FailedAccountRequestException */ public function testGetUserForInvalidAccountId() { // test invalid accountId $user = new InstitutionUser(); $user->setAccountId(99999999); $result = $this->service->getUser($user); }