def METHOD_NAME(admin_request, sample_service, mocker, invitation_email_template):
    mocker.patch("app.celery.provider_tasks.deliver_email.apply_async")
    email_address = "invited_user@service.gov.uk"
    invite_from = sample_service.users[0]
    data = {
        "service": str(sample_service.id),
        "email_address": email_address,
        "from_user": str(invite_from.id),
        "permissions": "send_messages,manage_service,manage_api_keys",
        "folder_permissions": [],
    }
    json_resp = admin_request.post(
        "invite.create_invited_user",
        service_id=sample_service.id,
        _data=data,
        _expected_status=201,
    )
    assert json_resp["data"]["auth_type"] == EMAIL_AUTH_TYPE