def METHOD_NAME(
    self, views, application_instance_service, exception
):
    application_instance_service.create_application_instance.side_effect = exception
    response = views.create_callback()
    assert response == REDIRECT_TO_CREATE_AI