public function testGetMetadata() { if (method_exists($this->producer, 'getMetadata')) { $metadata = $this->producer->getMetadata(true, null, 60000.0); } else { $metadata = $this->producer->metadata(true, null, 60000.0); } $this->assertInstanceOf(Metadata::class, $metadata); }