public function testSerializationDeserialization()
{
$obj = new Webhook(self::getJson());
$this->assertNotNull($obj);
$this->assertNotNull($obj->getId());
$this->assertNotNull($obj->getUrl());
$this->assertNotNull($obj->getEventTypes());
$this->assertNotNull($obj->getLinks());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}