public function testGetJsonConverterThrowsExceptionIfGivenJsonConverterClassCouldNotBeInstantiated()
 {
     /** @var \Dkd\PhpCmis\Bindings\BindingSessionInterface|\PHPUnit_Framework_MockObject_MockObject $sessionMock */
     $sessionMock = $this->getMockBuilder('\\Dkd\\PhpCmis\\Bindings\\BindingSessionInterface')->setMethods(array('get'))->getMockForAbstractClass();
     $jsonConverterClassName = '\\Dkd\\PhpCmis\\Test\\Fixtures\\Php\\ConstructorThrowsException';
     $sessionMock->expects($this->exactly(2))->method('get')->will($this->returnValueMap(array(array(SessionParameter::JSON_CONVERTER, null, null), array(SessionParameter::JSON_CONVERTER_CLASS, null, $jsonConverterClassName))));
     $this->setExpectedException('\\Dkd\\PhpCmis\\Exception\\CmisRuntimeException', sprintf('Could not create object of type "%s"!', $jsonConverterClassName));
     $this->cmisBindingsHelper->getJsonConverter($sessionMock);
 }
 /**
  * Returns JSON Converter instance
  *
  * @return \Dkd\PhpCmis\Converter\JsonConverter
  */
 protected function getJsonConverter()
 {
     return $this->cmisBindingsHelper->getJsonConverter($this->getSession());
 }