public function testDecode() {
$this->serializer = new Serializer(array(), array(
'json' => new JsonEncoder(),
));
$data = array(
'foo',
array(
5,
3,
),
);
$result = $this->serializer
->decode(json_encode($data), 'json');
$this
->assertEquals($data, $result);
}