def METHOD_NAME(mocker):
    import flask
    from flask import Blueprint
    from app import init_app
    from app.authentication.auth import AuthError
    from app.v2.errors import BadRequestError, JobIncompleteError, TooManyRequestsError
    app = flask.Flask(__name__)
    app.config["TESTING"] = True
    init_app(app)
    from app import statsd_client
    statsd_client.init_app(app)
    from app.v2.errors import register_errors
    blue = Blueprint("v2_under_test", __name__, url_prefix="/v2/under_test")
    @blue.route("/raise_auth_error", methods=["GET"])
    def raising_auth_error():
        raise AuthError("some message", 403)
    @blue.route("/raise_bad_request", methods=["GET"])
    def raising_bad_request():
        raise BadRequestError(message="you forgot the thing")
    @blue.route("/raise_too_many_requests", methods=["GET"])
    def raising_too_many_requests():
        raise TooManyRequestsError(sending_limit="452")
    @blue.route("/raise_validation_error", methods=["GET"])
    def raising_validation_error():
        from app.schema_validation import validate
        from app.v2.notifications.notification_schemas import post_sms_request
        validate({"template_id": "bad_uuid"}, post_sms_request)
    @blue.route("raise_data_error", methods=["GET"])
    def raising_data_error():
        raise DataError("There was a db problem", "params", "orig")
    @blue.route("raise_job_incomplete_error", methods=["GET"])
    def raising_job_incomplete_error():
        raise JobIncompleteError("Raising job incomplete error")
    @blue.route("raise_exception", methods=["GET"])
    def raising_exception():
        raise AssertionError("Raising any old exception")
    register_errors(blue)
    app.register_blueprint(blue)
    return app