public function testHasItem()
{
$namespace = 'ns';
$key = 'key';
$returnValue = true;
$stub = $this->getHierarchyCacheStub();
$stub->expects($this->once())->method('hasItem')->with('|' . $namespace . '|' . $key)->willReturn($returnValue);
$pool = new NamespacedCachePool($stub, $namespace);
$this->assertEquals($returnValue, $pool->hasItem($key));
}