getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : PatchRequest
return PayPal\Api\PatchRequest
 /**
  * @dataProvider mockProvider
  * @param Webhook $obj
  */
 public function testUpdate($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(self::getJson()));
     $patchRequest = PatchRequestTest::getObject();
     $result = $obj->update($patchRequest, $mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }