public function testCacheWrite()
{
$config = array('default' => array('adapter' => 'Memory', 'filters' => array()));
Cache::config($config);
$result = Cache::config();
$expected = $config;
$this->assertEqual($expected, $result);
$result = Cache::write('default', 'some_key', 'some_data', '+1 minute');
$this->assertTrue($result);
$result = Cache::write('non_existing', 'key_value', 'data', '+1 minute');
$this->assertFalse($result);
}