protected function createResourceOwner(array $options, $name, $paths = null)
 {
     $this->buzzClient = $this->getMockBuilder('\\Buzz\\Client\\ClientInterface')->disableOriginalConstructor()->getMock();
     $httpUtils = $this->getMockBuilder('\\Symfony\\Component\\Security\\Http\\HttpUtils')->disableOriginalConstructor()->getMock();
     $this->storage = $this->getMock('\\HWI\\Bundle\\OAuthBundle\\OAuth\\OAuth1RequestTokenStorageInterface');
     $resourceOwner = new GenericOAuth1ResourceOwner($this->buzzClient, $httpUtils, $options, $name, $this->storage);
     $resourceOwner->addPaths($paths ?: $this->getDefaultPaths());
     return $resourceOwner;
 }