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