public function testDecode()
{
$t = new \Test\Json();
$obj1 = $t->testDecodeObject();
$this->assertSame($obj1->a, 'hello');
$arr1 = $t->testDecodeArray();
$this->assertSame($arr1[1], 2);
$obj2 = $t->testDecodeObject2();
$this->assertSame($obj2['a'], 'hello');
}