async def METHOD_NAME(
    gql_manager_client: AsyncClientSession,
    db_connection: Connection,
    sophie_tifour_beneficiary_id: UUID,
):
    personne = CdbBeneficiaryInfos(
        right_rsa="rsa_droit_ouvert_et_suspendu",
        rsa_closure_date=None,
        rsa_closure_reason=None,
        rsa_suspension_reason="caf_ressources_trop_elevees",
        is_homeless=False,
        subject_right_and_duty=False,
        caf_number="2055990",
    )
    sha = "123"
    external_data_payload = {"payload": "payload", "madate": date(2003, 2, 1)}
    beneficiary = await update_beneficiary(
        gql_manager_client,
        sophie_tifour_beneficiary_id,
        personne,
        sha,
        external_data_payload,
    )
    assert beneficiary
    external_data: ExternalData | None = await get_external_data_with_query(
        db_connection,
        "WHERE external_data_info.beneficiary_id = $1 "
        "AND external_data.source = $2 "
        "ORDER BY created_at DESC LIMIT 1",
        beneficiary.id,
        "cafmsa",
    )
    assert external_data
    verify_as_json(external_data.data)