public function testGetSpiThrowsExceptionIfGivenBindingClassDoesNotImplementCmisInterface()
 {
     $sessionMock = $this->getMockBuilder('\\Dkd\\PhpCmis\\Bindings\\BindingSessionInterface')->setMethods(array('get'))->getMockForAbstractClass();
     $sessionMock->expects($this->exactly(2))->method('get')->will($this->returnValueMap(array(array(CmisBindingsHelper::SPI_OBJECT, null, null), array(SessionParameter::BINDING_CLASS, null, 'stdClass'))));
     $this->setExpectedException('\\Dkd\\PhpCmis\\Exception\\CmisRuntimeException', 'The given binding class "stdClass" does not implement required CmisInterface!');
     $this->cmisBindingsHelper->getSpi($sessionMock);
 }