public function testClear()
{
$this->Memory->_session['foobar'] = 'foo';
$closure = $this->Memory->clear();
$this->assertInternalType('callable', $closure);
$result = $closure($this->Memory, array(), null);
$this->assertEmpty($this->Memory->_session);
}