I want to test my function, where I add a new object to a database and then (still in this function) the object is being sent to a server. The problem is that to send the object