public function removeGroupPermissionsJohn()
{
$this->switchAuth('john');
// Getting shares from cache.
$this->assertEquals(4, count(self::$share->listShares('john', array('perm' => Horde_Perms::READ))));
$this->assertEquals(2, count(self::$share->listShares('john', array('perm' => Horde_Perms::DELETE))));
// Reset cache.
self::$share->resetCache();
// Getting shares from backend.
$this->assertEquals(4, count(self::$share->listShares('john', array('perm' => Horde_Perms::READ))));
$this->assertEquals(2, count(self::$share->listShares('john', array('perm' => Horde_Perms::DELETE))));
}