public function testSerializationDeserialization()
{
$obj = new Incentive(self::getJson());
$this->assertNotNull($obj);
$this->assertNotNull($obj->getId());
$this->assertNotNull($obj->getCode());
$this->assertNotNull($obj->getName());
$this->assertNotNull($obj->getDescription());
$this->assertNotNull($obj->getMinimumPurchaseAmount());
$this->assertNotNull($obj->getLogoImageUrl());
$this->assertNotNull($obj->getExpiryDate());
$this->assertNotNull($obj->getType());
$this->assertNotNull($obj->getTerms());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}