{
  "id": "HS-001",
  "name": "HubSpot single unique record should sync to NexusCRM as one corresponding record",
  "description": "When HubSpot pushes a new unique Lead, NexusCRM should create only 1 corresponding record, not duplicates. Bug: #570 - single HubSpot record creates multiple NexusCRM duplicates.",
  "object": "HubSpotInbound",
  "method": "POST",
  "endpoint": "/services/integrations/hubspot/webhook",
  "payload": {
    "email": "hubspot-unique-001@test.com",
    "firstName": "HubSpot",
    "lastName": "Unique Lead",
    "company": "HubSpot Test Co",
    "website": "https://hubspotunique001.com",
    "hubspot_id": "hs_900001"
  },
  "expects": {
    "status_code": 201
  },
  "query_after": {
    "object": "Lead",
    "assertions": [
      {
        "field": "Email",
        "operator": "eq",
        "value": "hubspot-unique-001@test.com"
      },
      {
        "field": "Company",
        "operator": "eq",
        "value": "HubSpot Test Co"
      }
    ]
  },
  "teardown": {
    "method": "DELETE",
    "endpoint": "/services/data/v63.0/sobjects/Lead/{id}"
  },
  "priority": "P0",
  "bug_ref": "#570",
  "scene": "hubspot"
}
