def METHOD_NAME(mocker, app):
    with app.test_request_context(headers={'Cookie': 'accessToken=access-token'}):
        mock_abort = mocker.patch('api.PclusterApiHandler.abort')
        mocker.patch('api.PclusterApiHandler.jwt_decode',
                     side_effect=jwt.ExpiredSignatureError())
        authenticate({'any-group'})
        mock_abort.assert_called_once_with(401)