public function testSerializeDeserialize() { $p1 = $this->payerInfo; $p2 = new PayerInfo(); $p2->fromJson($p1->toJson()); $this->assertEquals($p1, $p2); }