public function testAjax()
 {
     $this->module->sendAjaxGetRequest('/info', array('show' => 'author'));
     $this->assertArrayHasKey('HTTP_X_REQUESTED_WITH', $_SERVER);
     $get = data::get('params');
     $this->assertEquals('author', $get['show']);
     $this->module->sendAjaxPostRequest('/form/complex', array('show' => 'author'));
     $this->assertArrayHasKey('HTTP_X_REQUESTED_WITH', $_SERVER);
     $post = data::get('form');
     $this->assertEquals('author', $post['show']);
     $this->module->sendAjaxRequest('DELETE', '/articles');
     $this->assertEquals('DELETE', $_SERVER['REQUEST_METHOD']);
     $this->module->sendAjaxRequest('PUT', '/articles/1', array('title' => 'foo'));
     $this->assertEquals('PUT', $_SERVER['REQUEST_METHOD']);
 }