     {:error, :mock_not_found}
   """
   def get_organization(id, opts \\ [])
+  def get_organization(id = @not_found_id, opts) do
+    send self(), {:closex_mock_client, :get_organization, [id, opts]}
+    {:error, :mock_not_found}
+  end
   def get_organization(id, opts) do
     organization = load("organization.json")
-                   |> Map.merge({"id" => id})
+                   |> Map.merge(%{"id" => id})
     send self(), {:closex_mock_client, :get_organization, [id, opts]}
     {:ok, organization}
-  end
-  def get_organization(id = @not_found_id, opts) do
-    send self(), {:closex_mock_client, :get_organization, [id, opts]}
-    {:error, :mock_not_found}
   end
 
   @doc """

    {:error, :mock_not_found}
  """
  def get_lead(id, opts \\ [])
  def get_lead(id, opts) do
    lead = load("lead.json")
           |> Map.merge({"id" => id})
    send self(), {:closex_mock_client, :get_lead, [id, opts]}
    {:ok, lead}
  end
  def get_lead(id = @not_found_id, opts) do
    send self(), {:closex_mock_client, :get_lead, [id, opts]}
    {:error, :mock_not_found}
  end

  @doc """
  Gets an opportunity from CloseIO.

    {:error, :mock_not_found}
  """
  def get_lead_custom_field(id, opts \\ [])
  def get_lead_custom_field(id = @not_found_id, opts) do
    send self(), {:closex_mock_client, :get_lead_custom_field, [id, opts]}
    {:error, :mock_not_found}
  end
  def get_lead_custom_field(id, opts) do
    lead_custom_field = load("lead_custom_field.json")
                        |> Map.merge(%{"id" => id})
    send self(), {:closex_mock_client, :get_lead_custom_field, [id, opts]}
    {:ok, lead_custom_field}
  end

  @doc """
  Gets an organization from CloseIO.
