public function testSerializationDeserialization()
{
$obj = new Template(self::getJson());
$this->assertNotNull($obj);
$this->assertNotNull($obj->getTemplateId());
$this->assertNotNull($obj->getName());
$this->assertNotNull($obj->getDefault());
$this->assertNotNull($obj->getTemplateData());
$this->assertNotNull($obj->getSettings());
$this->assertNotNull($obj->getUnitOfMeasure());
$this->assertNotNull($obj->getCustom());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}