/**
  * Resolves the response
  *
  * @param string $format The response format (e.g. 'json')
  *
  * @return AbstractResponse
  */
 public function resolve($format)
 {
     $className = sprintf($this->patternProvider->getPattern(), ucfirst($format));
     return $this->objectManager->get($className);
 }
 /**
  * ResolverUsesObjectManagerToRetrieveConcreteImplementation
  *
  * @return void
  */
 public function testResolverUsesObjectManagerToRetrieveConcreteImplementation()
 {
     $this->objectManagerMock->expects($this->once())->method('get')->with($this->equalTo('DreadLabs\\VantomasWebsite\\Disqus\\Response\\Json'));
     $this->patternProviderMock->expects($this->once())->method('getPattern')->willReturn('DreadLabs\\VantomasWebsite\\Disqus\\Response\\%s');
     $this->sut->resolve('json');
 }