public function testReadsAreCached()
 {
     // test that reads fill cache
     $this->obj1->setMetadata($this->name, $this->value);
     $this->cache->flush();
     $this->obj1->getMetadata($this->name);
     $this->assertIdentical($this->cache->load($this->guid1, $this->name), $this->value);
 }
 public function testMetadataReadsFillsCache()
 {
     // test that reads fill cache
     $this->obj1->setMetadata($this->name, [1, 2]);
     $this->cache->clearAll();
     $this->obj1->getMetadata($this->name);
     $this->assertIdentical($this->cache->getSingle($this->guid1, $this->name), [1, 2]);
 }