public function testGetPropertyDataItems()
 {
     $expected = array($this->dataItemFactory->newDIProperty('Bar'), $this->dataItemFactory->newDIProperty('Foobar'));
     $store = $this->getMockBuilder('\\SMW\\Store')->disableOriginalConstructor()->setMethods(array('getRedirectTarget'))->getMockForAbstractClass();
     $store->expects($this->atLeastOnce())->method('getPropertyValues')->will($this->returnValue(array($this->dataItemFactory->newDIBlob('Bar;Foobar'))));
     $store->expects($this->any())->method('getRedirectTarget')->will($this->returnArgument(0));
     $this->testEnvironment->registerObject('Store', $store);
     $instance = new ReferenceValue();
     $instance->setProperty($this->dataItemFactory->newDIProperty('Foo'));
     $this->assertEquals($expected, $instance->getPropertyDataItems());
     $this->assertEquals($this->dataItemFactory->newDIProperty('Foobar'), $instance->getPropertyDataItemByIndex('Foobar'));
 }