/**
  * testProcessCallsFormatter
  *
  * ensure the formatting function gets called
  */
 public function testProcessCallsFormatter()
 {
     $data = array('test');
     $dataFormatter = function ($data) {
         return array('123');
     };
     $this->setProtectedValue($this->service, 'requestParameters', $this->requestParameters);
     Phake::when($this->requestParameters)->getDisplayLength()->thenReturn(10);
     $this->service->setData($data);
     $result = $this->service->process($dataFormatter);
     $this->assertEquals(array('sEcho' => null, 'iTotalRecords' => 1, 'iTotalDisplayRecords' => 1, 'aaData' => array('123')), $result);
 }