public function testSerializationDeserialization()
{
$obj = new Links(self::getJson());
$this->assertNotNull($obj);
$this->assertNotNull($obj->getHref());
$this->assertNotNull($obj->getRel());
$this->assertNotNull($obj->getTargetSchema());
$this->assertNotNull($obj->getMethod());
$this->assertNotNull($obj->getEnctype());
$this->assertNotNull($obj->getSchema());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}