getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : Payment
return PayPal\Api\Payment
 /**
  * @depends testSerializationDeserialization
  * @param PaymentHistory $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getPayments(), PaymentTest::getObject());
     $this->assertEquals($obj->getCount(), 123);
     $this->assertEquals($obj->getNextId(), "TestSample");
 }