public function testEmptyOptions()
 {
     $container = new Container();
     $this->assertInstanceOf('BedRest\\Service\\Configuration', $container->getServiceConfiguration());
     $this->assertInstanceOf('BedRest\\Rest\\Configuration', $container->getRestConfiguration());
     $this->assertInstanceOf('BedRest\\Service\\ServiceManager', $container->getServiceManager());
     $this->assertInstanceOf('BedRest\\Rest\\RestManager', $container->getRestManager());
 }
 /**
  * Dispatches the request to BedRest.
  */
 public function dispatchBedRest(array $options)
 {
     if (isset($options['method'])) {
         $this->_bedRestRequest->setMethod($options['method']);
     }
     $restManager = $this->_bedRest->getRestManager();
     $this->_bedRestResponse = $restManager->process($this->_bedRestRequest);
     $response = $this->getResponse();
     $response->setHttpResponseCode($this->_bedRestResponse->getStatusCode());
     foreach ($this->_bedRestResponse->getHeaders() as $name => $value) {
         $response->setHeader($name, $value);
     }
     $response->setBody($this->_bedRestResponse->getRawBody());
 }