title: Mocking using mocha in NodeJs
body: <p>How can I mock a client and a server in Mocha using NodeJs.
  Specifically, I have the following code:</p>
  
  <pre><code>app.post ('path name', function (req, res) { 
    // Some Action 
    res.send(response); 
  });
  </code></pre>
  
  <p>I want to mock the <code>req</code>, <code>res</code> parameters and test <code>res</code> (status, header, message).</p>