def METHOD_NAME(client, notify_db, notify_db_session, sample_service):
    invites = []
    for i in range(0, 5):
        email = "invited_user_{}@service.gov.uk".format(i)
        invited_user = create_sample_invited_user(notify_db, notify_db_session, sample_service, email)
        invites.append(invited_user)
    url = "/service/{}/invite".format(sample_service.id)
    auth_header = create_authorization_header()
    response = client.get(url, headers=[("Content-Type", "application/json"), auth_header])
    assert response.status_code == 200
    json_resp = json.loads(response.get_data(as_text=True))
    invite_from = sample_service.users[0]
    for invite in json_resp["data"]:
        assert invite["service"] == str(sample_service.id)
        assert invite["from_user"] == str(invite_from.id)
        assert invite["auth_type"] == EMAIL_AUTH_TYPE
        assert invite["id"]