public function testApiEncode_EncodesObjectToJson_ForDefaultDecoder(ParserInterface $parser) { $this->assertEquals($this->getString(), $parser->encode($this->getObject())); }