def METHOD_NAME(variant):
    payload = generate_sample_payload(WebhookEventAsyncType.PRODUCT_CREATED)
    product = variant.product
    product.refresh_from_db()
    assert payload == json.loads(generate_product_payload(variant.product))