getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : RefundDetail
return PayPal\Api\RefundDetail
 /**
  * @dataProvider mockProvider
  * @param Invoice $obj
  */
 public function testRecordRefund($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(true));
     $refundDetail = RefundDetailTest::getObject();
     $result = $obj->recordRefund($refundDetail, $mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }