def METHOD_NAME(client, fake_uuid, sample_service):
    auth_header = create_authorization_header(service_id=sample_service.id)
    response = client.post(
        path="/v2/template/{}/preview".format(fake_uuid),
        data=json.dumps(valid_personalisation),
        headers=[("Content-Type", "application/json"), auth_header],
    )
    assert response.status_code == 404
    assert response.headers["Content-type"] == "application/json"
    json_response = json.loads(response.get_data(as_text=True))
    assert json_response == {
        "errors": [{"error": "NoResultFound", "message": "No result found"}],
        "status_code": 404,
    }