public function testSerializationDeserialization()
{
$obj = new MerchantPreferences(self::getJson());
$this->assertNotNull($obj);
$this->assertNotNull($obj->getId());
$this->assertNotNull($obj->getSetupFee());
$this->assertNotNull($obj->getCancelUrl());
$this->assertNotNull($obj->getReturnUrl());
$this->assertNotNull($obj->getNotifyUrl());
$this->assertNotNull($obj->getMaxFailAttempts());
$this->assertNotNull($obj->getAutoBillAmount());
$this->assertNotNull($obj->getInitialFailAmountAction());
$this->assertNotNull($obj->getAcceptedPaymentType());
$this->assertNotNull($obj->getCharSet());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}