/**
  * @covers ::applyFilter
  */
 public function testApplyFilterWithFilterprovider()
 {
     $authentication_manager = new AuthenticationManager();
     $auth_provider = $this->getMock('Drupal\\Tests\\Core\\Authentication\\TestAuthenticationProviderInterface');
     $authentication_manager->addProvider($auth_provider, 'filtered', 0);
     $auth_provider->expects($this->once())->method('appliesToRoutedRequest')->willReturn(TRUE);
     $request = new Request();
     $this->assertTrue($authentication_manager->appliesToRoutedRequest($request, FALSE));
 }