public function testCacheWriteAndDelete()
{
$config = array('default' => array('adapter' => 'Memory', 'filters' => array()));
Cache::config($config);
$result = Cache::config();
$expected = $config;
$this->assertEqual($expected, $result);
$result = Cache::delete('non_existing', 'key_value');
$this->assertFalse($result);
$result = Cache::write('default', 'to delete', 'dead data', '+1 minute');
$this->assertTrue($result);
$result = Cache::delete('default', 'to delete');
$this->assertTrue($result);
$this->assertEmpty(Cache::read('default', 'to delete'));
}