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