def METHOD_NAME(context, expected_state):
    deployments = load_deployments_json(
        "fake_deployments_json_service", soa_dir="fake_soa_configs"
    )
    latest = sorted(
        deployments.config_dict.items(),
        key=lambda kv: kv[1]["force_bounce"] or "",
        reverse=True,
    )[0][1]
    desired_state = latest["desired_state"]
    assert (
        desired_state == expected_state
    ), f"actual: {desired_state}\nexpected: {expected_state}"