public function testSerializationDeserialization()
{
$obj = new PayoutBatchHeader(self::getJson());
$this->assertNotNull($obj);
$this->assertNotNull($obj->getPayoutBatchId());
$this->assertNotNull($obj->getBatchStatus());
$this->assertNotNull($obj->getTimeCreated());
$this->assertNotNull($obj->getTimeCompleted());
$this->assertNotNull($obj->getSenderBatchHeader());
$this->assertNotNull($obj->getAmount());
$this->assertNotNull($obj->getFees());
$this->assertNotNull($obj->getErrors());
$this->assertNotNull($obj->getLinks());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}