/**
  * @expectedException LogicException
  */
 public function testInvalidRequestFactoryCallbackReturnValue()
 {
     $conf = new GenericConfiguration();
     $conf->setRequestFactory(function ($request) {
         return new \stdClass();
     });
     RequestFactory::createRequest($conf);
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function testSetRequestFactoryThrowExceptionIfArgumentIsNotCallable()
 {
     $this->genericConfiguration->setRequestFactory("");
 }