public function testSetEmptySemanticData()
 {
     $instance = new Subobject(Title::newFromText(__METHOD__));
     $instance->setEmptyContainerForId('Foo');
     $this->assertInstanceOf('\\Title', $instance->getTitle());
     $this->assertInstanceOf('\\SMWContainerSemanticData', $instance->getSemanticData());
     $this->assertEquals($instance->getSubobjectId(), $instance->getSemanticData()->getSubject()->getSubobjectName());
 }
 public function testMethodAccess()
 {
     $subobject = new Subobject(DIWikiPage::newFromText(__METHOD__)->getTitle());
     $instance = new NullProfileAnnotator($subobject, '_QUERYadcb944aa33b2c972470b73964c547c0');
     $instance->addAnnotation();
     $this->assertInstanceOf('\\SMW\\DIProperty', $instance->getProperty());
     $this->assertInstanceOf('\\SMWDIContainer', $instance->getContainer());
     $this->assertInstanceOf('\\SMWContainerSemanticData', $instance->getSemanticData());
     $this->assertEmpty($instance->getErrors());
     $this->assertEquals('_QUERYadcb944aa33b2c972470b73964c547c0', $subobject->getSubobjectId());
 }