def METHOD_NAME(self):
    def mock_send(_, **kwargs):
        kwargs.pop("stream", None)
        if kwargs:
            raise ValueError(f"Received unexpected kwargs in transport: {kwargs}")
        return mock_response(status_code=204)
    callautomation_client = CallAutomationClient("https://endpoint", AzureKeyCredential("fakeCredential=="), transport=Mock(send=mock_send))
    callautomation_client.stop_recording(recording_id=self.recording_id)