/**
  * Make sure that the given response is successful.
  *
  * @param bool $redirect
  */
 public function isSuccessful($redirect = false)
 {
     $this->assertTrue($this->response->isSuccessful());
     $this->assertSame($redirect, $this->response->isRedirect());
     $this->assertSame('ok', $this->response->getStatus());
     $this->assertNotNull($this->response->getRaw());
 }