def METHOD_NAME(app_spec):
    app_spec = app_spec._replace(
        autoscaler=AutoscalerSpec(enabled=True, min_replicas=1, max_replicas=2, cpu_threshold_percentage=50)
    )
    assert should_have_autoscaler(app_spec) is False