public function testSocialEmail()
{
$session = $this->getMockBuilder('Cake\\Network\\Session')->setMethods(['check', 'delete'])->getMock();
$session->expects($this->at(0))->method('check')->with('Users.social')->will($this->returnValue('social_key'));
$session->expects($this->at(1))->method('delete')->with('Flash.auth');
$this->controller->Trait->request = $this->getMockBuilder('Cake\\Network\\Request')->setMethods(['session'])->getMock();
$this->controller->Trait->request->expects($this->any())->method('session')->will($this->returnValue($session));
$this->controller->Trait->socialEmail();
}