/**
  * @dataProvider importDataProvider
  */
 public function testMapWikiPageToResourceElementForImportMatch($dataItem, $expected)
 {
     $store = $this->getMockBuilder('\\SMW\\Store')->disableOriginalConstructor()->getMockForAbstractClass();
     $store->expects($this->once())->method('getPropertyValues')->will($this->returnValue(array(new \SMWDIBlob('foo:bar:fom:fuz'))));
     $instance = new DataItemToExpResourceEncoder($store);
     $resource = $instance->mapWikiPageToResourceElement($dataItem);
     $this->assertSame($expected, $resource->getSerialization());
 }
 /**
  * @see DataItemToExpResourceEncoder::mapWikiPageToResourceElement
  */
 public static function getResourceElementForWikiPage(SMWDIWikiPage $diWikiPage, $markForAuxiliaryUsage = false)
 {
     return self::$dataItemToExpResourceEncoder->mapWikiPageToResourceElement($diWikiPage, $markForAuxiliaryUsage);
 }