   def get_opportunity(id, opts) do
     opportunity =
       load("opportunity.json")
-      |> Map.merge(%{"id" => id})
+      |> Map.put("id", id)
 
     send(self(), {:closex_mock_client, :get_opportunity, [id, opts]})
     {:ok, opportunity}

    opportunity =
      load("opportunity.json")
      |> Map.merge(payload)
      |> Map.merge(%{"id" => opportunity_id})

    send(self(), {:closex_mock_client, :update_opportunity, [opportunity_id, payload, opts]})
    {:ok, opportunity}

  def get_lead_custom_field(id, opts) do
    lead_custom_field =
      load("lead_custom_field.json")
      |> Map.put("id", id)

    send(self(), {:closex_mock_client, :get_lead_custom_field, [id, opts]})
    {:ok, lead_custom_field}
