/**
* Tests that attempts to render a media type with no handler registered produces an
* 'unhandled media type' exception, even if the type itself is a registered content type.
*
* @return void
*/
public function testUnregisteredContentHandler()
{
$response = new Response();
$response->type('xml');
$this->expectException("Unhandled media type `xml`.");
Media::render($response, array('foo' => 'bar'));
$result = $response->body;
$this->assertNull($result);
}