public function testInvokingWithExceptionWithValidCodeSetsStatusToExceptionCode()
{
$error = new Exception('foo', 400);
$response = call_user_func($this->final, $this->request, $this->response, $error);
$this->assertEquals(400, $response->getStatusCode());
}