public function onCoreRequest_tokenClassSupported_requestAuthenticationCode()
{
$event = $this->createEvent();
$token = $this->createSupportedSecurityToken();
$this->stubTokenStorage($token);
$expectedContext = new AuthenticationContext($this->request, $token);
$this->authenticationContextFactory->expects($this->once())->method('create')->willReturn($expectedContext);
//Expect TwoFactorProvider to be called
$this->authHandler->expects($this->once())->method('requestAuthenticationCode')->with($expectedContext);
$this->listener->onCoreRequest($event);
}