public function testRead() { $expected = array('some' => 'data'); $encoded = json_encode($expected); $result = $this->Json->read($encoded); $this->assertEqual($expected, $result); }