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