/**
  * Make sure that a different status code throws an exception.
  *
  * @return void
  */
 public function testStatusException()
 {
     $this->response->expects($this->once())->method('getStatusCode')->will($this->returnValue('201'));
     $this->setExpectedException('RuntimeException', 'Unexpected response status code: 201');
     $this->validator->status('200');
 }