public function testShouldFailIfUserIsSuspended()
 {
     // create user and logged in (the user who will perform the action)
     $user = User::create(array('first_name' => 'darryl', 'email' => '*****@*****.**', 'password' => 'admin', 'permissions' => array()));
     // create throttle banned entry
     Throttle::create(array('user_id' => $user->id, 'suspended' => true, 'suspended_at' => Carbon\Carbon::now()));
     // dummy request with none existing credentials
     $request = Request::create('', 'POST', array('email' => '*****@*****.**', 'password' => 'admin'));
     // begin
     $result = $this->commandDispatcher->dispatchFrom('Darryldecode\\Backend\\Components\\Auth\\Commands\\AuthenticateCommand', $request);
     $this->assertFalse($result->isSuccessful(), 'Transaction should not be successful.');
     $this->assertEquals(401, $result->getStatusCode(), 'Status code should be unauthorized.');
     $this->assertEquals('This account is currently suspended. You can login after 15 minutes.', $result->getMessage());
 }