/**
  * testAuthentication method
  *
  * @return void
  */
 public function testAuthentication()
 {
     $http = new HttpSocket();
     $auth = array('method' => 'Basic', 'user' => 'mark', 'pass' => 'secret');
     BasicAuthentication::authentication($http, $auth);
     $this->assertEquals('Basic bWFyazpzZWNyZXQ=', $http->request['header']['Authorization']);
 }