/**
  * @expectedException Guzzle\Http\Exception\ClientErrorResponseException
  */
 public function testServerError()
 {
     $fqdn = 'error.400';
     $agent = new Agent(new NullLogger(), $this->getMockClient(array('error_400.http')));
     $agent->setFacter(new ArrayFacter(array('fqdn' => $fqdn, 'hostname' => $fqdn)), Agent::SYSTEM);
     $agent->sendServer();
 }