public function testObjectFactoryIsSetToObjectFactoryDefinedInParametersArray()
 {
     $objectFactory = $this->getMock('\\Dkd\\PhpCmis\\ObjectFactory');
     $session = new Session(array(SessionParameter::REPOSITORY_ID => 'foo', SessionParameter::OBJECT_FACTORY_CLASS => get_class($objectFactory)), null, null, null, null, $this->getBindingsHelperMock());
     $this->assertEquals($objectFactory, $session->getObjectFactory());
 }