/**
  * Test Render
  *
  * @return  void
  */
 public function testRender()
 {
     $this->object->setBuffer('Unit Test Buffer');
     $this->assertThat($this->object->render(), $this->equalTo('Unit Test Buffer'), 'We did not get the buffer back properly');
     $headers = JFactory::getApplication()->getHeaders();
     $disposition = false;
     foreach ($headers as $head) {
         if ($head['name'] == 'Content-disposition') {
             $this->assertThat($head['value'], $this->stringContains('.xml'), 'The content disposition did not include json extension');
             $disposition = true;
         }
     }
     $this->assertThat($disposition, $this->equalTo(true), 'No Content-disposition headers');
 }
 /**
  * @testdox  Test the default return for render
  */
 public function testTheDefaultReturnForRender()
 {
     $this->assertEmpty($this->object->render());
 }