public function testNoResourceClass()
{
$request = new Request();
$eventProphecy = $this->prophesize(GetResponseEvent::class);
$eventProphecy->getRequest()->willReturn($request)->shouldBeCalled();
$event = $eventProphecy->reveal();
$listener = new AddFormatListener(new Negotiator(), ['jsonld' => 'application/ld+json']);
$listener->onKernelRequest($event);
$this->assertNull($request->getFormat('application/ld+json'));
}